aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/soundcloud.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-01-27 22:55:42 +0700
committerSergey M․ <dstftw@gmail.com>2017-01-27 22:55:42 +0700
commit489ffc118232056537e86bd0281488e217fce7d4 (patch)
tree99e84c85c1e7628842a5815355ff9b35dc4756f4 /youtube_dl/extractor/soundcloud.py
parent0b23c222ba099d73c287d024f45f90714c15f289 (diff)
[soundcloud] Fix track URL extraction (closes #11852)
Diffstat (limited to 'youtube_dl/extractor/soundcloud.py')
-rw-r--r--youtube_dl/extractor/soundcloud.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/youtube_dl/extractor/soundcloud.py b/youtube_dl/extractor/soundcloud.py
index 5a201eaa8..96bebeec5 100644
--- a/youtube_dl/extractor/soundcloud.py
+++ b/youtube_dl/extractor/soundcloud.py
@@ -173,11 +173,12 @@ class SoundcloudIE(InfoExtractor):
})
# We have to retrieve the url
- streams_url = ('http://api.soundcloud.com/i1/tracks/{0}/streams?'
- 'client_id={1}&secret_token={2}'.format(track_id, self._IPHONE_CLIENT_ID, secret_token))
format_dict = self._download_json(
- streams_url,
- track_id, 'Downloading track url')
+ 'http://api.soundcloud.com/i1/tracks/%s/streams' % track_id,
+ track_id, 'Downloading track url', query={
+ 'client_id': self._CLIENT_ID,
+ 'secret_token': secret_token,
+ })
for key, stream_url in format_dict.items():
if key.startswith('http'):