From fbeebf5f9748794314156d2c4d59b70c6ab811e8 Mon Sep 17 00:00:00 2001 From: Nathan Thomas Date: Fri, 14 Jan 2022 19:02:37 -0800 Subject: [PATCH] Fix SoundCloud index error #270 --- streamrip/clients.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamrip/clients.py b/streamrip/clients.py index def8c79..3e9965f 100644 --- a/streamrip/clients.py +++ b/streamrip/clients.py @@ -1189,7 +1189,7 @@ class SoundCloudClient(Client): raise Exception if track["downloadable"] and track["has_downloads_left"]: - r = self._get(f"tracks/{track['id']}/download")[0] + r = self._get(f"tracks/{track['id']}/download").json() return {"url": r["redirectUri"], "type": "original"} else: