From 6189258a6f4dd4f30d21ef3f72de70b9d2c7a3e2 Mon Sep 17 00:00:00 2001 From: Jacob Stevens Date: Sun, 19 Mar 2023 06:02:28 -0500 Subject: [PATCH] Removed sleep timer and made a successful download green --- calibre_tools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calibre_tools.py b/calibre_tools.py index 8edbfbe..be647be 100644 --- a/calibre_tools.py +++ b/calibre_tools.py @@ -74,7 +74,6 @@ class CalibreTools: TerminalInterface.appendInterface("Info", "Downloading Books " + str(downloaded_books) + " out of " + str(len(download_links)), 2) else: TerminalInterface.runInterfaceSchedule() - time.sleep(0.2) @staticmethod def getBooksLink(ip_port, library_name, multiple, max=None): @@ -110,7 +109,7 @@ class CalibreTools: if not os.path.exists(directory_name + "/" + filename): TerminalInterface.appendInterface("Info", f"Thread-{line-3} Downloading {filename}", line) urlretrieve(link, directory_name + "/" + filename) - TerminalInterface.appendInterface("Info", f"Thread-{line-3} Completed", line) + TerminalInterface.appendInterface("Success", f"Thread-{line-3} Completed", line) elif not int(filesize) == os.path.getsize(directory_name + "/" + filename): TerminalInterface.appendInterface("Warning", f'Thread-{line-3} Filesize does not match... Downloading file. {filename}', line) os.remove(directory_name + "/" + filename)