Sfoglia il codice sorgente

Reduce time to wait on connection failure

pull/3/head
tech234a 3 anni fa
parent
commit
429d02a89e
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      worker.py

+ 4
- 4
worker.py Vedi File

@@ -27,8 +27,8 @@ class batchthread(threading.Thread):
break break
except BaseException as e: except BaseException as e:
print(e) print(e)
print("Error in retrieving information, waiting 10 minutes")
sleep(600)
print("Error in retrieving information, waiting 30 seconds")
sleep(30)


# Add any discovered videos # Add any discovered videos
recvids.update(info[2]) recvids.update(info[2])
@@ -52,8 +52,8 @@ class batchthread(threading.Thread):
if gsres: if gsres:
break break
else: else:
print("Error in retrieving subtitles, waiting 10 minutes")
sleep(600)
print("Error in retrieving subtitles, waiting 30 seconds")
sleep(30)


return True return True




Caricamento…
Annulla
Salva