diff --git a/mopidy/backends/spotify/session_manager.py b/mopidy/backends/spotify/session_manager.py index ea689a2d..cdea0c5c 100644 --- a/mopidy/backends/spotify/session_manager.py +++ b/mopidy/backends/spotify/session_manager.py @@ -20,13 +20,14 @@ from mopidy.utils.process import BaseThread logger = logging.getLogger('mopidy.backends.spotify.session_manager') DEFAULT_CACHE_LOCATION = os.path.join(glib.get_user_cache_dir(), 'spotify') +DEFAULT_SETTINGS_LOCATION = DEFAULT_CACHE_LOCATION # pylint: disable = R0901 # SpotifySessionManager: Too many ancestors (9/7) class SpotifySessionManager(BaseThread, PyspotifySessionManager): - cache_location = settings.SPOTIFY_CACHE_PATH + cache_location = settings.SPOTIFY_CACHE_PATH or DEFAULT_SETTINGS_LOCATION settings_location = settings.SPOTIFY_CACHE_PATH or DEFAULT_CACHE_LOCATION appkey_file = os.path.join(os.path.dirname(__file__), 'spotify_appkey.key') user_agent = 'Mopidy %s' % get_version() diff --git a/mopidy/settings.py b/mopidy/settings.py index 9eed9c67..6e012a05 100644 --- a/mopidy/settings.py +++ b/mopidy/settings.py @@ -237,7 +237,7 @@ SHOUTCAST_OUTPUT_ENCODER = u'lame mode=stereo bitrate=320' #: Path to the Spotify cache. #: #: Used by :mod:`mopidy.backends.spotify`. -SPOTIFY_CACHE_PATH = u'' +SPOTIFY_CACHE_PATH = None #: Your Spotify Premium username. #: