Move the Spotify cache to a subdir of the Mopidy cache

This commit is contained in:
Stein Magnus Jodal 2012-08-11 00:31:58 +02:00
parent f392a7cccb
commit 436fd7815d
2 changed files with 7 additions and 2 deletions

View File

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

View File

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