spotify: Fix errors after switch to new config system

This commit is contained in:
Stein Magnus Jodal 2013-04-05 15:18:54 +02:00
parent f87ede0767
commit b3952503b8
2 changed files with 3 additions and 2 deletions

View File

@ -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):

View File

@ -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'],