From: Sergey M․ Date: Sat, 2 Jan 2016 13:42:11 +0000 (+0600) Subject: [bbccouk] Extend title extraction X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=88fb59d91bf5fd33dbe7863fbf1e4a9a641fa483;p=youtube-dl.git [bbccouk] Extend title extraction --- 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']+id="parent-title"[^>]*>(.+?)', webpage, 'title') description = self._search_regex( r'

([^<]+)

', webpage, 'description', default=None)