Index: contrib/url_soundcloud.py ================================================================== --- contrib/url_soundcloud.py +++ contrib/url_soundcloud.py @@ -1,12 +1,12 @@ # api: streamtuner2 # title: Soundcloud streams # description: Convert soundcloud links from reddit to streamable tracks -# version: 0.1 +# version: 0.2 # type: filter # category: audio -# depends: python:soundcloud, action >= 1.0, reddit >= 0.6 +# depends: python:soundcloud, action >= 1.1, reddit >= 0.8 # priority: rare # # Overrides action.play() function to convert soundcloud URLs # to track/streaming address. Disables the reddit filter for # walled gardens, and overrides any custom player configured @@ -35,10 +35,11 @@ def sndcl_convert(row={}, audioformat="audio/mpeg", source="pls", assoc={}): if audioformat==fmt or rx_url.match(url): # find streaming address try: + url = row["url"] log.DATA_CONVERT_SOUNDCLOUD(url) track = client().get('/resolve', url=url) track_str = "/tracks/{}/stream".format(track.id) url = client().get(track_str, allow_redirects=False).location