From 429d02a89e4e60a72800e7d6e58044196f25fa4e Mon Sep 17 00:00:00 2001 From: tech234a <46801700+tech234a@users.noreply.github.com> Date: Sat, 19 Sep 2020 18:02:11 -0400 Subject: [PATCH] Reduce time to wait on connection failure --- worker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/worker.py b/worker.py index 635ac57..367c91b 100644 --- a/worker.py +++ b/worker.py @@ -27,8 +27,8 @@ class batchthread(threading.Thread): break except BaseException as 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 recvids.update(info[2]) @@ -52,8 +52,8 @@ class batchthread(threading.Thread): if gsres: break else: - print("Error in retrieving subtitles, waiting 10 minutes") - sleep(600) + print("Error in retrieving subtitles, waiting 30 seconds") + sleep(30) return True