diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-01-28 23:19:53 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-01-28 23:19:53 +0600 |
commit | 50e989e2636fc59ed896cc021b1b594bd10e9e17 (patch) | |
tree | 79649bcc6f828dc4af525c72db73be6ef8fab152 /youtube_dl | |
parent | 10e6ed93417fb51c606af2e3e47b9a5a094dd6ee (diff) |
[bbc] Add another title regex (Closes #8340)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/bbc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py index 1c493b72d..210ce568b 100644 --- a/youtube_dl/extractor/bbc.py +++ b/youtube_dl/extractor/bbc.py @@ -482,7 +482,8 @@ class BBCCoUkIE(InfoExtractor): if programme_id: formats, subtitles = self._download_media_selector(programme_id) title = self._og_search_title(webpage, default=None) or self._html_search_regex( - r'<h2[^>]+id="parent-title"[^>]*>(.+?)</h2>', webpage, 'title') + (r'<h2[^>]+id="parent-title"[^>]*>(.+?)</h2>', + r'<div[^>]+class="info"[^>]*>\s*<h1>(.+?)</h1>'), webpage, 'title') description = self._search_regex( r'<p class="[^"]*medium-description[^"]*">([^<]+)</p>', webpage, 'description', default=None) |