From 30a5fd06c24298811f09ed6a3f2f086f732c8b25 Mon Sep 17 00:00:00 2001 From: Matt Bray Date: Sun, 9 Dec 2012 23:52:20 +0000 Subject: [PATCH] Fix for updates to pyspotify Pyspotify now creates the session in `pyspotify.SpotifySessionManager.__init__` (rather than in `.connect`) - see [here][1]. Therefore it seems best not to set `self.session = None` in `mopidy.SpotifySessionManager.__init__` or `self.session = session` in `logged_in`. [1]: https://github.com/mopidy/pyspotify/commit/483f7574303dc7afed491244fc382ce49add64c4#L1R39 --- mopidy/backends/spotify/session_manager.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mopidy/backends/spotify/session_manager.py b/mopidy/backends/spotify/session_manager.py index 2336ad4d..8112f885 100644 --- a/mopidy/backends/spotify/session_manager.py +++ b/mopidy/backends/spotify/session_manager.py @@ -46,7 +46,6 @@ class SpotifySessionManager(process.BaseThread, PyspotifySessionManager): self.backend_ref = backend_ref self.connected = threading.Event() - self.session = None self.container_manager = None self.playlist_manager = None @@ -64,7 +63,6 @@ class SpotifySessionManager(process.BaseThread, PyspotifySessionManager): return logger.info('Connected to Spotify') - self.session = session logger.debug( 'Preferred Spotify bitrate is %s kbps',