|
|
@ -1852,7 +1852,7 @@ class TwitterSpacesIE(TwitterBaseIE):
|
|
|
|
('source', ('noRedirectPlaybackUrl', 'location'), {url_or_none}), get_all=False)
|
|
|
|
('source', ('noRedirectPlaybackUrl', 'location'), {url_or_none}), get_all=False)
|
|
|
|
is_audio_space = source and 'audio-space' in source
|
|
|
|
is_audio_space = source and 'audio-space' in source
|
|
|
|
formats = self._extract_m3u8_formats(
|
|
|
|
formats = self._extract_m3u8_formats(
|
|
|
|
source, metadata['media_key'], 'm4a' if is_audio_space else 'mp4',
|
|
|
|
source, metadata['media_key'], 'aac' if is_audio_space else 'mp4',
|
|
|
|
# XXX: Some audio-only Spaces need to truncate heads of their fragments, not only ffmpeg as downloader
|
|
|
|
# XXX: Some audio-only Spaces need to truncate heads of their fragments, not only ffmpeg as downloader
|
|
|
|
entry_protocol='twitter_spaces' if is_audio_space else 'm3u8_native',
|
|
|
|
entry_protocol='twitter_spaces' if is_audio_space else 'm3u8_native',
|
|
|
|
live=is_live, headers=headers, fatal=False) if source else []
|
|
|
|
live=is_live, headers=headers, fatal=False) if source else []
|
|
|
|