This commit is contained in:
blueowl04 2025-08-19 14:51:03 +08:00 committed by GitHub
commit 0c7ecde69d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -445,6 +445,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(),
@ -455,6 +457,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
'duration': duration,
'view_count': view_count,
'uploader': uploader,
'published_time': published_time,
}
@staticmethod