mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +03:00
[soundcloud] update client_id, fix #679
This commit is contained in:
parent
38c272c014
commit
d9f77021b8
@ -9,7 +9,7 @@ def soundcloud_download_by_id(id, title = None, output_dir = '.', merge = True,
|
|||||||
|
|
||||||
#if info["downloadable"]:
|
#if info["downloadable"]:
|
||||||
# url = 'https://api.soundcloud.com/tracks/' + id + '/download?client_id=b45b1aa10f1ac2941910a7f0d10f8e28'
|
# url = 'https://api.soundcloud.com/tracks/' + id + '/download?client_id=b45b1aa10f1ac2941910a7f0d10f8e28'
|
||||||
url = 'https://api.soundcloud.com/tracks/' + id + '/stream?client_id=b45b1aa10f1ac2941910a7f0d10f8e28'
|
url = 'https://api.soundcloud.com/tracks/' + id + '/stream?client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea'
|
||||||
assert url
|
assert url
|
||||||
type, ext, size = url_info(url)
|
type, ext, size = url_info(url)
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ def soundcloud_download_by_id(id, title = None, output_dir = '.', merge = True,
|
|||||||
download_urls([url], title, ext, size, output_dir, merge = merge)
|
download_urls([url], title, ext, size, output_dir, merge = merge)
|
||||||
|
|
||||||
def soundcloud_download(url, output_dir = '.', merge = True, info_only = False, **kwargs):
|
def soundcloud_download(url, output_dir = '.', merge = True, info_only = False, **kwargs):
|
||||||
metadata = get_html('https://api.soundcloud.com/resolve.json?url=' + url + '&client_id=b45b1aa10f1ac2941910a7f0d10f8e28')
|
metadata = get_html('https://api.soundcloud.com/resolve.json?url=' + url + '&client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea')
|
||||||
import json
|
import json
|
||||||
info = json.loads(metadata)
|
info = json.loads(metadata)
|
||||||
title = info["title"]
|
title = info["title"]
|
||||||
|
Loading…
Reference in New Issue
Block a user