mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 13:29:42 +02:00
fix bug
This commit is contained in:
parent
d469c3a64c
commit
edcf2979b8
1 changed files with 2 additions and 2 deletions
|
@ -115,13 +115,13 @@ class scanThread (threading.Thread):
|
||||||
if file_size > (1024 * 1024 * 1024):
|
if file_size > (1024 * 1024 * 1024):
|
||||||
status = "TOO BIG"
|
status = "TOO BIG"
|
||||||
else:
|
else:
|
||||||
res = pandora.submit_from_disk(file)
|
res = self.pandora.submit_from_disk(file)
|
||||||
|
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
loop = 0
|
loop = 0
|
||||||
|
|
||||||
while loop < (1024 * 256):
|
while loop < (1024 * 256):
|
||||||
res = pandora.task_status(res["taskId"])
|
res = self.pandora.task_status(res["taskId"])
|
||||||
|
|
||||||
# Handle responde from Pandora
|
# Handle responde from Pandora
|
||||||
status = res["status"]
|
status = res["status"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue