mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 19:52:11 +00:00
[soundcloud] Extract hls formats
This commit is contained in:
parent
489ffc1182
commit
9b73471801
1 changed files with 7 additions and 0 deletions
|
@ -198,6 +198,13 @@ class SoundcloudIE(InfoExtractor):
|
||||||
'ext': 'flv',
|
'ext': 'flv',
|
||||||
'vcodec': 'none',
|
'vcodec': 'none',
|
||||||
})
|
})
|
||||||
|
elif key.startswith('hls'):
|
||||||
|
m3u8_formats = self._extract_m3u8_formats(
|
||||||
|
stream_url, track_id, 'mp3', entry_protocol='m3u8_native',
|
||||||
|
m3u8_id=key, fatal=False)
|
||||||
|
for f in m3u8_formats:
|
||||||
|
f['vcodec'] = 'none'
|
||||||
|
formats.extend(m3u8_formats)
|
||||||
|
|
||||||
if not formats:
|
if not formats:
|
||||||
# We fallback to the stream_url in the original info, this
|
# We fallback to the stream_url in the original info, this
|
||||||
|
|
Loading…
Reference in a new issue