diff --git a/docs/changes.rst b/docs/changes.rst index 1e0900d4..a93369ea 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -12,6 +12,10 @@ v0.7.3 (in development) - Fixed crash when logging :exc:`IOError` exceptions on systems using languages with non-ASCII characters, like French. +- Move the default location of the Spotify cache from `~/.cache/mopidy` to + `~/.cache/mopidy/spotify`. You can change this by setting + :attr:`mopidy.settings.SPOTIFY_CACHE_PATH`. + v0.7.2 (2012-05-07) =================== diff --git a/mopidy/backends/spotify/session_manager.py b/mopidy/backends/spotify/session_manager.py index 2ae4ed2d..3794513c 100644 --- a/mopidy/backends/spotify/session_manager.py +++ b/mopidy/backends/spotify/session_manager.py @@ -23,8 +23,9 @@ logger = logging.getLogger('mopidy.backends.spotify.session_manager') class SpotifySessionManager(BaseThread, PyspotifySessionManager): - cache_location = settings.SPOTIFY_CACHE_PATH or CACHE_PATH - settings_location = settings.SPOTIFY_CACHE_PATH or CACHE_PATH + cache_location = (settings.SPOTIFY_CACHE_PATH + or os.path.join(CACHE_PATH, 'spotify')) + settings_location = cache_location appkey_file = os.path.join(os.path.dirname(__file__), 'spotify_appkey.key') user_agent = 'Mopidy %s' % get_version()