mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-09 12:17:51 +08:00
Update soundcloud.py
This commit is contained in:
parent
3ba32bb447
commit
bebef36a57
@ -17,7 +17,8 @@ from ..utils import (
|
||||
ExtractorError,
|
||||
int_or_none,
|
||||
unified_strdate,
|
||||
update_url_query)
|
||||
update_url_query,
|
||||
)
|
||||
|
||||
|
||||
class SoundcloudIE(InfoExtractor):
|
||||
@ -166,7 +167,7 @@ class SoundcloudIE(InfoExtractor):
|
||||
if info.get('downloadable', False):
|
||||
# We can build a direct link to the song
|
||||
format_url = update_url_query(
|
||||
'https://api.soundcloud.com/tracks/{0}/download'.format(track_id), query)
|
||||
'https://api.soundcloud.com/tracks/%s/download' % track_id, query)
|
||||
formats.append({
|
||||
'format_id': 'download',
|
||||
'ext': info.get('original_format', 'mp3'),
|
||||
|
Loading…
Reference in New Issue
Block a user