spotify: Rename 'cache_path' to 'cache_dir'
This commit is contained in:
parent
335c4d9fd8
commit
6e5cdb85b0
@ -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):
|
||||
|
||||
@ -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'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user