1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-06-22 19:36:20 +00:00

Merge 2bbe273a81b76d9ddd4df8bac7372db6ec1666a0 into c052a16f72af7dd7671d4dd62826de71cd99dfb6

This commit is contained in:
blueowl04 2025-04-14 08:59:22 +00:00 committed by GitHub
commit 7215a8feb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -444,6 +444,8 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
renderer, renderer,
(lambda x: x['ownerText']['runs'][0]['text'], (lambda x: x['ownerText']['runs'][0]['text'],
lambda x: x['shortBylineText']['runs'][0]['text']), compat_str) lambda x: x['shortBylineText']['runs'][0]['text']), compat_str)
published_time = try_get(
renderer, lambda x: x['publishedTimeText']['simpleText'], compat_str) or ''
return { return {
'_type': 'url', '_type': 'url',
'ie_key': YoutubeIE.ie_key(), 'ie_key': YoutubeIE.ie_key(),
@ -454,6 +456,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
'duration': duration, 'duration': duration,
'view_count': view_count, 'view_count': view_count,
'uploader': uploader, 'uploader': uploader,
'published_time': published_time,
} }
@staticmethod @staticmethod