use /tmp if media-cache is None/null, fixes #2794

This commit is contained in:
j 2019-12-19 13:16:58 +02:00
parent 30d5f1be0c
commit 8f36560d69
1 changed files with 4 additions and 1 deletions

View File

@ -251,7 +251,10 @@ class Client(object):
return conn, conn.cursor()
def media_cache(self):
return os.path.expanduser(self._config.get('media-cache', default_media_cache))
path = self._config.get('media-cache', default_media_cache)
if path is None:
path = '/tmp/pandora_client_media_cache'
return os.path.expanduser(path)
def get(self, key, default=None):
conn, c = self._conn()