mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 01:42:50 +01:00
[extractor/twitter:spaces] Add release_timestamp
(#7186)
Authored by: CeruleanSky
This commit is contained in:
parent
ecfe47973f
commit
1c16d9df53
@ -705,6 +705,7 @@ class TwitterIE(TwitterBaseIE):
|
|||||||
'uploader': r're:Monique Camarra.+?',
|
'uploader': r're:Monique Camarra.+?',
|
||||||
'uploader_id': 'MoniqueCamarra',
|
'uploader_id': 'MoniqueCamarra',
|
||||||
'live_status': 'was_live',
|
'live_status': 'was_live',
|
||||||
|
'release_timestamp': 1658417414,
|
||||||
'description': 'md5:acce559345fd49f129c20dbcda3f1201',
|
'description': 'md5:acce559345fd49f129c20dbcda3f1201',
|
||||||
'timestamp': 1658407771464,
|
'timestamp': 1658407771464,
|
||||||
},
|
},
|
||||||
@ -1327,6 +1328,8 @@ def _real_extract(self, url):
|
|||||||
'uploader_id': traverse_obj(
|
'uploader_id': traverse_obj(
|
||||||
metadata, ('creator_results', 'result', 'legacy', 'screen_name')),
|
metadata, ('creator_results', 'result', 'legacy', 'screen_name')),
|
||||||
'live_status': live_status,
|
'live_status': live_status,
|
||||||
|
'release_timestamp': try_call(
|
||||||
|
lambda: int_or_none(metadata['scheduled_start'], scale=1000)),
|
||||||
'timestamp': metadata.get('created_at'),
|
'timestamp': metadata.get('created_at'),
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user