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]: 483f757430 (L1R39)
This commit is contained in:
parent
4e4df2adf2
commit
30a5fd06c2
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user