1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 18:52:55 +08:00

[bbccouk] Extend title extraction

This commit is contained in:
Sergey M․ 2016-01-02 19:42:11 +06:00
parent f20a11ed25
commit 88fb59d91b

View File

@ -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)