diff --git a/config.example.json b/config.example.json index 1f88a83..e938f38 100644 --- a/config.example.json +++ b/config.example.json @@ -1,6 +1,6 @@ { "url": "http://pandora_url/api/", - "username": "username", "password": "password" + "username": "username", "password": "password", "cache": "~/.ox/client.sqlite", "volumes": { "my videos": "/home/example/Movies" diff --git a/pandora_client/__init__.py b/pandora_client/__init__.py index 7ff123a..f8359a3 100644 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -235,7 +235,7 @@ class Client(object): else: volumes[name]['available'] = False - profile = self.api.encodingProfile()['data']['profile'] + profile = self.get_profile() for name in volumes: if volumes[name]['available']: prefix = volumes[name]['path'] @@ -288,7 +288,7 @@ class Client(object): else: volumes[name]['available'] = False - profile = self.api.encodingProfile()['data']['profile'] + profile = self.get_profile() for name in volumes: if volumes[name]['available']: prefix = volumes[name]['path']