From f313d9d44681e0795b237edfc8cd89af09408068 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 21 Nov 2012 00:23:10 +0100 Subject: [PATCH] spotify: Ignore playlists without a name --- docs/changes.rst | 3 +++ mopidy/backends/spotify/translator.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/docs/changes.rst b/docs/changes.rst index 47d1ea2d..eef62a1f 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -50,6 +50,9 @@ long time been our most requested feature. Finally, it's here! - Added support for connecting to the Spotify service through an HTTP or SOCKS proxy, which is supported by pyspotify >= 1.9. +- Subscriptions to other Spotify user's "starred" playlists are ignored, as + they currently isn't fully supported by pyspotify. + **Local backend** - :issue:`236`: The ``mopidy-scan`` command failed to include tags from ALAC diff --git a/mopidy/backends/spotify/translator.py b/mopidy/backends/spotify/translator.py index 834b34d8..92b4514e 100644 --- a/mopidy/backends/spotify/translator.py +++ b/mopidy/backends/spotify/translator.py @@ -56,6 +56,10 @@ def to_mopidy_playlist(spotify_playlist): uri = str(Link.from_playlist(spotify_playlist)) if not spotify_playlist.is_loaded(): return Playlist(uri=uri, name='[loading...]') + if not spotify_playlist.name(): + # Other user's "starred" playlists isn't handled properly by pyspotify + # See https://github.com/mopidy/pyspotify/issues/81 + return return Playlist( uri=uri, name=spotify_playlist.name(),