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