mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-05 12:37:04 +01:00
[youtube] More general title extraction
Seems like this attribute is moved every few weeks, so we just extract both and use the one that is present.
This commit is contained in:
parent
1f93faf60b
commit
f442082a50
@ -3383,7 +3383,7 @@ def _entries(self, page):
|
||||
info.extend(new_info)
|
||||
|
||||
for video in new_info:
|
||||
yield self.url_result(try_get(video, lambda x: x['videoId']), YoutubeIE.ie_key(), video_title=try_get(video, lambda x: x['title']['runs'][0]['text']))
|
||||
yield self.url_result(try_get(video, lambda x: x['videoId']), YoutubeIE.ie_key(), video_title=try_get(video, lambda x: x['title']['runs'][0]['text']) or try_get(video, lambda x: x['title']['simpleText']))
|
||||
|
||||
if not continuation or not yt_conf:
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user