mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-24 15:59:42 +02:00
work in progress
This commit is contained in:
parent
e90deb3bfb
commit
baeb8a943c
2 changed files with 12 additions and 14 deletions
|
@ -436,7 +436,7 @@ def scan(mount_point, used):
|
|||
res = pandora.submit_from_disk(full_path)
|
||||
time.sleep(0.1)
|
||||
loop = 0
|
||||
while True and (loop < 60):
|
||||
while True and (loop < 960):
|
||||
res = pandora.task_status(res["taskId"])
|
||||
status = res["status"]
|
||||
if status != "WAITING":
|
||||
|
@ -448,7 +448,7 @@ def scan(mount_point, used):
|
|||
file,
|
||||
human_readable_size(file_size),
|
||||
status,
|
||||
(file_scan_end_time - file_scan_start_time)))
|
||||
(file_scan_end_time - file_scan_start_time)))
|
||||
scanned += os.path.getsize(full_path)
|
||||
file_count += 1
|
||||
update_bar(scanned * 100 // used)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue