From 1c16d9df5330819cc79ad588b24aa5b72765c168 Mon Sep 17 00:00:00 2001 From: CeruleanSky Date: Thu, 1 Jun 2023 02:35:41 -0400 Subject: [PATCH] [extractor/twitter:spaces] Add `release_timestamp` (#7186) Authored by: CeruleanSky --- yt_dlp/extractor/twitter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yt_dlp/extractor/twitter.py b/yt_dlp/extractor/twitter.py index d9a89c44b..4624ce503 100644 --- a/yt_dlp/extractor/twitter.py +++ b/yt_dlp/extractor/twitter.py @@ -705,6 +705,7 @@ class TwitterIE(TwitterBaseIE): 'uploader': r're:Monique Camarra.+?', 'uploader_id': 'MoniqueCamarra', 'live_status': 'was_live', + 'release_timestamp': 1658417414, 'description': 'md5:acce559345fd49f129c20dbcda3f1201', 'timestamp': 1658407771464, }, @@ -1327,6 +1328,8 @@ def _real_extract(self, url): 'uploader_id': traverse_obj( metadata, ('creator_results', 'result', 'legacy', 'screen_name')), 'live_status': live_status, + 'release_timestamp': try_call( + lambda: int_or_none(metadata['scheduled_start'], scale=1000)), 'timestamp': metadata.get('created_at'), 'formats': formats, }