diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-01-02 19:42:11 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-01-02 19:42:11 +0600 |
commit | 88fb59d91bf5fd33dbe7863fbf1e4a9a641fa483 (patch) | |
tree | 1972ce00564edc669f96845a92338d02d1c48a83 /youtube_dl/extractor | |
parent | f20a11ed257f21a1c658f827e0c2129a72582adf (diff) |
[bbccouk] Extend title extraction
Diffstat (limited to 'youtube_dl/extractor')
-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 5c621a32b..7b169881a 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) + title = self._og_search_title(webpage, default=None) or self._html_search_regex( + r'<h2[^>]+id="parent-title"[^>]*>(.+?)</h2>', webpage, 'title') description = self._search_regex( r'<p class="[^"]*medium-description[^"]*">([^<]+)</p>', webpage, 'description', default=None) |