aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-01-27 23:08:32 +0700
committerSergey M․ <dstftw@gmail.com>2017-01-27 23:08:32 +0700
commit9b73471801d24cec678226c82cce9e9ece92732e (patch)
tree21b3a1f15c7e6d3048d66febf20b739bceea3d35 /youtube_dl/extractor
parent489ffc118232056537e86bd0281488e217fce7d4 (diff)
[soundcloud] Extract hls formats
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/soundcloud.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dl/extractor/soundcloud.py b/youtube_dl/extractor/soundcloud.py
index 96bebeec5..55c80e1cc 100644
--- a/youtube_dl/extractor/soundcloud.py
+++ b/youtube_dl/extractor/soundcloud.py
@@ -198,6 +198,13 @@ class SoundcloudIE(InfoExtractor):
'ext': 'flv',
'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:
# We fallback to the stream_url in the original info, this