From b3952503b8ec808055f51f5814d3dfc52157a848 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 5 Apr 2013 15:18:54 +0200 Subject: [PATCH] spotify: Fix errors after switch to new config system --- mopidy/backends/spotify/library.py | 2 +- mopidy/backends/spotify/session_manager.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mopidy/backends/spotify/library.py b/mopidy/backends/spotify/library.py index b8192dad..af6d99c7 100644 --- a/mopidy/backends/spotify/library.py +++ b/mopidy/backends/spotify/library.py @@ -62,7 +62,7 @@ class SpotifyTrack(Track): class SpotifyLibraryProvider(base.BaseLibraryProvider): def __init__(self, *args, **kwargs): - super(SpotifyLibraryProvider).__init__(*args, **kwargs) + super(SpotifyLibraryProvider, self).__init__(*args, **kwargs) self._timeout = self.backend.config['spotify']['timeout'] def find_exact(self, query=None, uris=None): diff --git a/mopidy/backends/spotify/session_manager.py b/mopidy/backends/spotify/session_manager.py index 1281050b..c27d8215 100644 --- a/mopidy/backends/spotify/session_manager.py +++ b/mopidy/backends/spotify/session_manager.py @@ -24,13 +24,14 @@ BITRATES = {96: 2, 160: 0, 320: 1} class SpotifySessionManager(process.BaseThread, PyspotifySessionManager): cache_location = None - settings_location = cache_location + settings_location = None appkey_file = os.path.join(os.path.dirname(__file__), 'spotify_appkey.key') user_agent = 'Mopidy %s' % versioning.get_version() def __init__(self, config, audio, backend_ref): self.cache_location = config['spotify']['cache_path'] + self.settings_location = config['spotify']['cache_path'] PyspotifySessionManager.__init__( self, config['spotify']['username'], config['spotify']['password'],