summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/SoundcloudCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-20 18:43:15 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 22:46:01 +0100
commit5deded62d94c04be64d34f6b67d07803eea9b6bf (patch)
treea33f82a6208b3a922bf5e1883f134a1fb86a9217 /module/plugins/hoster/SoundcloudCom.py
parentUpdate addons (diff)
downloadpyload-5deded62d94c04be64d34f6b67d07803eea9b6bf.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/SoundcloudCom.py')
-rw-r--r--module/plugins/hoster/SoundcloudCom.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/SoundcloudCom.py b/module/plugins/hoster/SoundcloudCom.py
index 6c74840f9..854e98d54 100644
--- a/module/plugins/hoster/SoundcloudCom.py
+++ b/module/plugins/hoster/SoundcloudCom.py
@@ -42,8 +42,9 @@ class SoundcloudCom(SimpleHoster):
client_id = "b45b1aa10f1ac2941910a7f0d10f8e28"
#: Url to retrieve the actual song url
- streams = json.loads(self.load("https://api.soundcloud.com/tracks/%s/streams" % song_id,
- get={'client_id': client_id}))
+ html = self.load("https://api.soundcloud.com/tracks/%s/streams" % song_id,
+ get={'client_id': client_id})
+ streams = json.loads(html)
regex = re.compile(r'[^\d]')
http_streams = sorted([(key, value) for key, value in streams.items() if key.startswith('http_')],