mirror of
https://github.com/9001/copyparty.git
synced 2025-10-05 02:39:38 +02:00
add cygpath support for volume src too
This commit is contained in:
parent
88ce008e16
commit
ca27f8587c
3 changed files with 8 additions and 3 deletions
|
@ -44,14 +44,15 @@ class Cpp(object):
|
|||
|
||||
def await_idle(self, ub, timeout):
|
||||
req = ["scanning</td><td>False", "hash-q</td><td>0", "tag-q</td><td>0"]
|
||||
lim = int(timeout * 10)
|
||||
u = ub + "?h"
|
||||
for _ in range(timeout * 10):
|
||||
for n in range(lim):
|
||||
try:
|
||||
time.sleep(0.1)
|
||||
r = requests.get(u, timeout=0.1)
|
||||
for x in req:
|
||||
if x not in r.text:
|
||||
print("ST: miss " + x)
|
||||
print("ST: {}/{} miss {}".format(n, lim, x))
|
||||
raise Exception()
|
||||
print("ST: idle")
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue