This commit is contained in:
doe1080 2025-04-20 18:00:23 +09:00
parent b44a193b74
commit d36e86d35d

View File

@ -1722,12 +1722,12 @@ class TwitterSpacesIE(TwitterBaseIE):
'id': '1OwxWwQOPlNxQ',
'ext': 'm4a',
'title': 'Everybody in: @mtbarra & @elonmusk discuss the future of EV charging',
'description': 'md5:318cde7a7c2753fa5069cda27a6f2413',
'description': 'Twitter Space participated by Elon Musk',
'live_status': 'was_live',
'release_date': '20230608',
'release_timestamp': 1686256230,
'release_timestamp': 1686256200,
'thumbnail': r're:https?://pbs\.twimg\.com/profile_images/.+',
'timestamp': 1686254250,
'timestamp': 1686256230,
'upload_date': '20230608',
'uploader': 'Mary Barra',
'uploader_id': 'mtbarra',
@ -1740,14 +1740,14 @@ class TwitterSpacesIE(TwitterBaseIE):
'id': '1vAxRAVQWONJl',
'ext': 'm4a',
'title': 'Framing Up FinOps: Billing Tools',
'description': 'md5:d36a80d8607ce1c3feb0e26604045f0d',
'description': 'Twitter Space participated by rupa, Alfonso Hernandez',
'uploader': 'Google Cloud',
'uploader_id': 'googlecloud',
'live_status': 'post_live',
'thumbnail': r're:https?://pbs\.twimg\.com/profile_images/.+',
'timestamp': 1681409554,
'upload_date': '20230413',
'release_timestamp': 1681839082,
'timestamp': 1681839082,
'upload_date': '20230418',
'release_timestamp': 1681839000,
'release_date': '20230418',
'protocol': 'm3u8', # ffmpeg is forced
'container': 'm4a_dash', # audio-only format fixup is applied
@ -1760,14 +1760,12 @@ class TwitterSpacesIE(TwitterBaseIE):
'id': '1eaKbrQbjoRKX',
'ext': 'm4a',
'title': '',
'description': 'md5:e6a6be6e7a990b9c6e210ecf94089748',
'description': 'Twitter Space participated by nobody yet',
'uploader': '息根とめる',
'uploader_id': 'tomeru_ikinone',
'live_status': 'was_live',
'release_date': '20230601',
'release_timestamp': 1685617200,
'thumbnail': r're:https?://pbs\.twimg\.com/profile_images/.+',
'timestamp': 1685617198,
'timestamp': 1685617200,
'upload_date': '20230601',
'protocol': 'm3u8', # ffmpeg is forced
'container': 'm4a_dash', # audio-only format fixup is applied
@ -1780,14 +1778,14 @@ class TwitterSpacesIE(TwitterBaseIE):
'id': '1DXGydznBYWKM',
'ext': 'mp4',
'title': 'America and Israels “special relationship”',
'description': 'md5:e6a6be6e7a990b9c6e210ecf94089748',
'description': 'Twitter Space participated by nobody yet',
'uploader': 'Candace Owens',
'uploader_id': 'RealCandaceO',
'live_status': 'was_live',
'thumbnail': r're:https?://pbs\.twimg\.com/profile_images/.+',
'timestamp': 1723931351,
'timestamp': 1723932056,
'upload_date': '20240817',
'release_timestamp': 1723932056,
'release_timestamp': 1723932000,
'release_date': '20240817',
'protocol': 'm3u8_native', # not ffmpeg, detected as video space
},
@ -1873,15 +1871,13 @@ class TwitterSpacesIE(TwitterBaseIE):
'live_status': live_status,
**traverse_obj(metadata, {
'title': ('title', {str}),
'release_timestamp': ('started_at', {int_or_none(scale=1000)}),
'timestamp': ('created_at', {int_or_none(scale=1000)}),
'release_timestamp': ('scheduled_start', {int_or_none(scale=1000)}),
'timestamp': ('started_at', {int_or_none(scale=1000)}),
}),
**traverse_obj(metadata, ('creator_results', 'result', 'legacy', {
'uploader': ('name', {str}),
'uploader_id': ('screen_name', {str_or_none}),
'thumbnail': (
'profile_image_url_https', {lambda x: x.replace('_normal', '_400x400')}, {url_or_none},
),
'thumbnail': ('profile_image_url_https', {lambda x: x.replace('_normal', '_400x400')}, {url_or_none}),
})),
}