1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-24 15:27:55 +01:00

[soundcloud] Fix track URL extraction (closes #11852)

This commit is contained in:
Sergey M․ 2017-01-27 22:55:42 +07:00
parent 0b23c222ba
commit 489ffc1182
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -173,11 +173,12 @@ class SoundcloudIE(InfoExtractor):
}) })
# We have to retrieve the url # 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( format_dict = self._download_json(
streams_url, 'http://api.soundcloud.com/i1/tracks/%s/streams' % track_id,
track_id, 'Downloading track url') track_id, 'Downloading track url', query={
'client_id': self._CLIENT_ID,
'secret_token': secret_token,
})
for key, stream_url in format_dict.items(): for key, stream_url in format_dict.items():
if key.startswith('http'): if key.startswith('http'):