enable offline extraction, use profile from config if provided

This commit is contained in:
j 2011-12-29 01:26:35 +05:30
commit ab00769f7d
3 changed files with 20 additions and 12 deletions

View file

@ -31,6 +31,10 @@ if __name__ == '__main__':
action = args[0]
c = pandora_client.Client(opts.config)
if action == 'extract':
offline = True
else:
offline = False
c = pandora_client.Client(opts.config, offline)
getattr(c, action)()