projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
489ffc1
)
[soundcloud] Extract hls formats
author
Sergey M․
<dstftw@gmail.com>
Fri, 27 Jan 2017 16:08:32 +0000
(23:08 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 27 Jan 2017 16:08:32 +0000
(23:08 +0700)
youtube_dl/extractor/soundcloud.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/soundcloud.py
b/youtube_dl/extractor/soundcloud.py
index 96bebeec53ef6a00552d76a104629ff88d4c49b5..55c80e1cc298cd3339e4fc559acd42d5fbafe704 100644
(file)
--- 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