mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
[bbccouk] Extend title extraction
This commit is contained in:
parent
f20a11ed25
commit
88fb59d91b
1 changed files with 2 additions and 1 deletions
|
@ -482,7 +482,8 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
if programme_id:
|
if programme_id:
|
||||||
formats, subtitles = self._download_media_selector(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(
|
description = self._search_regex(
|
||||||
r'<p class="[^"]*medium-description[^"]*">([^<]+)</p>',
|
r'<p class="[^"]*medium-description[^"]*">([^<]+)</p>',
|
||||||
webpage, 'description', default=None)
|
webpage, 'description', default=None)
|
||||||
|
|
Loading…
Reference in a new issue