A feature-rich command-line audio/video downloader
[bbccouk] Extend title extraction
Sergey M․88fb59d91bf5
diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.pyindex 5c621a32b4..7b169881af 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)