enable offline extraction, use profile from config if provided
This commit is contained in:
parent
052fc40e1c
commit
ab00769f7d
3 changed files with 20 additions and 12 deletions
|
|
@ -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)()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue