mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-06-02 19:12:40 +09:00
Merge 2bbe273a81b76d9ddd4df8bac7372db6ec1666a0 into da7223d4aa42ff9fc680b0951d043dd03cec2d30
This commit is contained in:
commit
6c146c6d24
@ -451,6 +451,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(),
|
||||||
@ -461,6 +463,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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user