From 6e5cdb85b0369480b9638dab65ae3f4d77e66dbc Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Mon, 8 Apr 2013 20:44:27 +0200 Subject: [PATCH] spotify: Rename 'cache_path' to 'cache_dir' --- mopidy/backends/spotify/__init__.py | 4 ++-- mopidy/backends/spotify/session_manager.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mopidy/backends/spotify/__init__.py b/mopidy/backends/spotify/__init__.py index 8aa0f4c0..704471b1 100644 --- a/mopidy/backends/spotify/__init__.py +++ b/mopidy/backends/spotify/__init__.py @@ -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): diff --git a/mopidy/backends/spotify/session_manager.py b/mopidy/backends/spotify/session_manager.py index 22ad4632..a830138f 100644 --- a/mopidy/backends/spotify/session_manager.py +++ b/mopidy/backends/spotify/session_manager.py @@ -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'],