This commit is contained in:
blueowl04 2024-05-11 05:03:49 +08:00 committed by GitHub
commit 2db6906d20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -338,6 +338,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(),
@ -348,6 +350,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
'duration': duration,
'view_count': view_count,
'uploader': uploader,
'published_time': published_time,
}
def _search_results(self, query, params):