From af0ff6267320353c5368e17c021e4d583890a962 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 7 May 2014 20:39:19 +0200 Subject: [PATCH] fix resume file location --- pandora_client/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_client/__init__.py b/pandora_client/__init__.py index ba34e4f..5f9c839 100644 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -911,7 +911,8 @@ class API(ox.API): self.media_cache = media_cache if not self.media_cache: self.media_cache = os.path.expanduser(default_media_cache) - self._resume_file = '/tmp/pandora_client.%s.json' % os.environ.get('USER') + netloc = urlparse(self.url).netloc + self._resume_file = '/tmp/pandora_client.%s.%s.json' % (os.environ.get('USER'), netloc) def uploadFrames(self, i, data): #upload frames