1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-06-30 15:26:19 +00:00

Merge 2bbe273a81b76d9ddd4df8bac7372db6ec1666a0 into 711e72c292327674c4a0593fdbb83d6347738ec9

This commit is contained in:
blueowl04 2025-02-24 05:08:42 +00:00 committed by GitHub
commit e959bc5577
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -448,6 +448,8 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
renderer,
(lambda x: x['ownerText']['runs'][0]['text'],
lambda x: x['shortBylineText']['runs'][0]['text']), compat_str)
published_time = try_get(
renderer, lambda x: x['publishedTimeText']['simpleText'], compat_str) or ''
return {
'_type': 'url',
'ie_key': YoutubeIE.ie_key(),
@ -458,6 +460,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
'duration': duration,
'view_count': view_count,
'uploader': uploader,
'published_time': published_time,
}
def _search_results(self, query, params):