mopidy/mopidy — pull request #292 by trygveaa (2012-12-23 23:39:12+00:00)
Title: spotify: Only return available tracks from lookups

The lookup methods for Spotify now returns all tracks. Many of these may be unavailable, so now they are added but skipped when you try to play them. This commits filters out unavailable tracks from the lookup methods.

I'm not sure this is exactly the right way to fix it. If the track isn't loaded, the tracks is reported as not available. It seems like all the tracks are loaded when an artist- or album-browse is loaded, so generally, this should be safe. However, if the wait times out, _lookup_track will return the track and the other lookup methods will not return any tracks, regardless of the availability.