fuzeman / Spotify2.bundle

Spotify music streaming for Plex (all platforms)
77 stars 45 forks source link

How to hide track not available in my region? #56

Open chienlim opened 9 years ago

chienlim commented 9 years ago

Playlist shows all track, even track that is not available in my region. When track not available in the region is played, the plug-in hang, and will need to force quit the plug-in or restart PMS. How can I hide unavailable track in the playlist?

chienlim commented 9 years ago

In container.py, there are lines of code:

    for x, track in enumerate(playlist.fetch()):
        oc.add(self.objects.track(track, index=x))

How can I add something like this in client.py:

        if tt.country == self.sp.country:

So that it will only add track that belong to the same country?