fix encoding profile

This commit is contained in:
j 2011-12-28 14:23:53 +05:30
parent 892616dc48
commit 9be69f2568
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{ {
"url": "http://pandora_url/api/", "url": "http://pandora_url/api/",
"username": "username", "password": "password" "username": "username", "password": "password",
"cache": "~/.ox/client.sqlite", "cache": "~/.ox/client.sqlite",
"volumes": { "volumes": {
"my videos": "/home/example/Movies" "my videos": "/home/example/Movies"

View file

@ -235,7 +235,7 @@ class Client(object):
else: else:
volumes[name]['available'] = False volumes[name]['available'] = False
profile = self.api.encodingProfile()['data']['profile'] profile = self.get_profile()
for name in volumes: for name in volumes:
if volumes[name]['available']: if volumes[name]['available']:
prefix = volumes[name]['path'] prefix = volumes[name]['path']
@ -288,7 +288,7 @@ class Client(object):
else: else:
volumes[name]['available'] = False volumes[name]['available'] = False
profile = self.api.encodingProfile()['data']['profile'] profile = self.get_profile()
for name in volumes: for name in volumes:
if volumes[name]['available']: if volumes[name]['available']:
prefix = volumes[name]['path'] prefix = volumes[name]['path']