[soundcloud] fix

This commit is contained in:
Mort Yao 2020-12-21 17:00:22 +01:00
parent 17c740ae54
commit 5a890eac53
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -19,7 +19,7 @@ def get_sndcd_apikey():
def get_resource_info(resource_url, client_id):
cont = get_content(resource_url, decoded=True)
x = re.escape('forEach(function(e){n(e)})}catch(t){}})},')
x = re.escape('forEach(function(e){n(e)})}catch(e){}})},')
x = re.search(r'' + x + r'(.*)\);</script>', cont)
info = json.loads(x.group(1))[-1]['data'][0]