mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-09 06:48:30 +00:00
[ie/Tagesschau] Improve title extraction for playlists
This commit is contained in:
parent
3c31737931
commit
5d0fa22359
@ -243,9 +243,8 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
if len(entries) > 1 and self._yes_playlist(
|
if len(entries) > 1 and self._yes_playlist(
|
||||||
webpage_id, entries[0]['id'], playlist_label='all media on', video_label='file'):
|
webpage_id, entries[0]['id'], playlist_label='all media on', video_label='file'):
|
||||||
title = self._html_search_regex(
|
title = self._html_search_meta(
|
||||||
r'<span[^>]*class="headline"[^>]*>(.+?)</span>',
|
['og:title', 'title', 'twitter:title'], webpage, 'title', fatal=False)
|
||||||
webpage, 'title', default=None) or self._og_search_title(webpage, fatal=False)
|
|
||||||
return self.playlist_result(entries, webpage_id, title)
|
return self.playlist_result(entries, webpage_id, title)
|
||||||
|
|
||||||
return entries[0]
|
return entries[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user