I can't get mopidy-soundcloud to play anything


#1

I’m able to install mopidy-soundcloud without errors and mopidy runs without errors. I’m able to search for songs on soundcloud but when I try to play them I get this:

Jan 24 00:02:55 arch mopidy[12954]: ERROR SoundCloudBackend backend caused an exception.
Jan 24 00:02:55 arch mopidy[12954]: Traceback (most recent call last):
Jan 24 00:02:55 arch mopidy[12954]: File “/usr/lib/python2.7/site-packages/mopidy/core/playback.py”, line 423, in _change
Jan 24 00:02:55 arch mopidy[12954]: if not backend.playback.change_track(pending_tl_track.track).get():
Jan 24 00:02:55 arch mopidy[12954]: File “/usr/lib/python2.7/site-packages/pykka/future.py”, line 299, in get
Jan 24 00:02:55 arch mopidy[12954]: exec(‘raise exc_info[0], exc_info[1], exc_info[2]’)
Jan 24 00:02:55 arch mopidy[12954]: File “/usr/lib/python2.7/site-packages/pykka/actor.py”, line 200, in _actor_loop
Jan 24 00:02:55 arch mopidy[12954]: response = self._handle_receive(message)
Jan 24 00:02:55 arch mopidy[12954]: File “/usr/lib/python2.7/site-packages/pykka/actor.py”, line 294, in _handle_receive
Jan 24 00:02:55 arch mopidy[12954]: return callee(*message[‘args’], **message[‘kwargs’])
Jan 24 00:02:55 arch mopidy[12954]: File “/usr/lib/python2.7/site-packages/mopidy/backend.py”, line 245, in change_track
Jan 24 00:02:55 arch mopidy[12954]: uri = self.translate_uri(track.uri)
Jan 24 00:02:55 arch mopidy[12954]: File “/usr/lib/python2.7/site-packages/mopidy_soundcloud/actor.py”, line 35, in translate_uri
Jan 24 00:02:55 arch mopidy[12954]: return track.uri
Jan 24 00:02:55 arch mopidy[12954]: AttributeError: ‘list’ object has no attribute 'uri’
Jan 24 00:02:55 arch mopidy[12954]: WARNING Track is not playable: soundcloud:song/Fools Gold by The Brig.108319530


Soundcloud no longer works, tracks aren't playable
#2

Hey, it looks like you and I ran into the same issue at the same time. It’s posted at Soundcloud no longer works, tracks aren’t playable.

As of a few hours ago the SoundCloud links mysteriously started working for me again.

Can you confirm that they also work again for you now?


#3

Yes, it appears to be working now… sigh…


#4

I bumped into the same problem that soundcloud playback seems to first work just fine, then stops working and later works again.

Looked a bit into this and seems that in my case the reason is rate limiting performed by soundcloud at their backend. When playback does not work, try to fetch https://api.soundcloud.com/tracks/[trackid]/stream and you will see an error like below indicating that rate limiting has kicked in:

$ curl https://api.soundcloud.com/tracks/200749801/stream?client_id=93e33e327fd8a9b77becd179652272e2
{“errors”:[{“meta”:{“rate_limit”:{“bucket”:“by-client”,“max_nr_of_requests”:15000,“time_window”:“PT24H”,“name”:“plays”},“remaining_requests”:0,“reset_time”:“2018/05/04 13:02:05 +0000”}}]}

More info about soundcloud rate limiting:
https://developers.soundcloud.com/docs/api/rate-limits#play-requests


#5

There’s an issue about this at https://github.com/mopidy/mopidy-soundcloud/issues/99