From: Sergey M․ Date: Thu, 28 Jan 2016 17:19:53 +0000 (+0600) Subject: [bbc] Add another title regex (Closes #8340) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=50e989e2636fc59ed896cc021b1b594bd10e9e17;p=youtube-dl [bbc] Add another title regex (Closes #8340) --- 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']+id="parent-title"[^>]*>(.+?)', webpage, 'title') + (r']+id="parent-title"[^>]*>(.+?)', + r']+class="info"[^>]*>\s*

(.+?)

'), webpage, 'title') description = self._search_regex( r'

([^<]+)

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