spotify: Rename 'cache_path' to 'cache_dir'

This commit is contained in:
Stein Magnus Jodal 2013-04-08 20:44:27 +02:00
parent 335c4d9fd8
commit 6e5cdb85b0
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ bitrate = 160
timeout = 10
# Path to the Spotify data cache. Cannot be shared with other Spotify apps
cache_path = $XDG_CACHE_DIR/mopidy/spotify
cache_dir = $XDG_CACHE_DIR/mopidy/spotify
"""
__doc__ = """A backend for playing music from Spotify
@ -75,7 +75,7 @@ class Extension(ext.Extension):
schema['password'] = config.String(secret=True)
schema['bitrate'] = config.Integer(choices=(96, 160, 320))
schema['timeout'] = config.Integer(minimum=0)
schema['cache_path'] = config.Path()
schema['cache_dir'] = config.Path()
return schema
def validate_environment(self):

View File

@ -30,8 +30,8 @@ class SpotifySessionManager(process.BaseThread, PyspotifySessionManager):
def __init__(self, config, audio, backend_ref):
self.cache_location = config['spotify']['cache_path']
self.settings_location = config['spotify']['cache_path']
self.cache_location = config['spotify']['cache_dir']
self.settings_location = config['spotify']['cache_dir']
PyspotifySessionManager.__init__(
self, config['spotify']['username'], config['spotify']['password'],