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