mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-23 08:17:00 +00: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
7d743516b5
commit
94255fa0b1
1 changed files with 1 additions and 1 deletions
|
@ -3379,7 +3379,7 @@ class YoutubeFeedsInfoExtractor(YoutubeBaseInfoExtractor):
|
||||||
info.extend(new_info)
|
info.extend(new_info)
|
||||||
|
|
||||||
for video in 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:
|
if not continuation or not yt_conf:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue