mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 05:19:40 +02:00
reformating
This commit is contained in:
parent
7134251bb3
commit
1a29d021cf
6 changed files with 192 additions and 181 deletions
|
@ -1,26 +1,24 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import pypandora
|
||||
import time
|
||||
import time
|
||||
import sys
|
||||
|
||||
pp = pypandora.PyPandora(root_url= 'http://127.0.0.1:6100')
|
||||
pp = pypandora.PyPandora(root_url="http://127.0.0.1:6100")
|
||||
|
||||
for arg in sys.argv[1:]:
|
||||
print(arg,end='',flush=True)
|
||||
print(":",end='',flush=True)
|
||||
print(arg, end="", flush=True)
|
||||
print(":", end="", flush=True)
|
||||
|
||||
res = pp.submit_from_disk(arg)
|
||||
|
||||
while True:
|
||||
print('.',end='',flush=True)
|
||||
print(".", end="", flush=True)
|
||||
time.sleep(1)
|
||||
|
||||
res = pp.task_status(res['taskId'])
|
||||
res = pp.task_status(res["taskId"])
|
||||
|
||||
if res['status']!='WAITING':
|
||||
if res["status"] != "WAITING":
|
||||
break
|
||||
|
||||
print(res['status'])
|
||||
|
||||
|
||||
print(res["status"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue