From 85ee2b71a17b8fe141e6fc0527f0646bc4384f7c Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 21 Mar 2010 03:23:53 +0100 Subject: [PATCH] libspotify: Remove unused code --- mopidy/backends/libspotify.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mopidy/backends/libspotify.py b/mopidy/backends/libspotify.py index 0f786778..894e9b05 100644 --- a/mopidy/backends/libspotify.py +++ b/mopidy/backends/libspotify.py @@ -165,7 +165,6 @@ class LibspotifySessionManager(SpotifySessionManager, threading.Thread): self.connected = threading.Event() self.translate = LibspotifyTranslator() self.audio = AlsaController() - self.playlists = [] def run(self): self.connect() @@ -174,11 +173,6 @@ class LibspotifySessionManager(SpotifySessionManager, threading.Thread): """Callback used by pyspotify""" logger.info('Logged in') self.session = session - try: - self.playlists = session.playlist_container() - logger.debug('Got playlist container') - except Exception, e: - logger.exception(e) self.connected.set() def logged_out(self, session): @@ -187,7 +181,7 @@ class LibspotifySessionManager(SpotifySessionManager, threading.Thread): def metadata_updated(self, session): """Callback used by pyspotify""" - logger.debug('Metadata updated') + logger.debug('Metadata updated, refreshing stored playlists') playlists = [] for spotify_playlist in session.playlist_container(): playlists.append(