From 10f5330d26359ffbbf310bf6754d7f036bc4bb91 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Tue, 21 Nov 2023 01:18:21 +0100 Subject: [PATCH] Add timeout grabs in download_prod() To make it at least somewhat usable for non-interactive use. --- gibMacOS.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gibMacOS.py b/gibMacOS.py index 4ae7897..7e99b06 100755 --- a/gibMacOS.py +++ b/gibMacOS.py @@ -295,7 +295,7 @@ class gibMacOS: print("") print("There were no files to download") print("") - self.u.grab("Press [enter] to return...") + self.u.grab("Press [enter] to return...", timeout=3) return c = 0 done = [] @@ -305,7 +305,7 @@ class gibMacOS: print("{}:\n".format(name)) print("\n".join([" - {} \n --> {}".format(os.path.basename(x), x) for x in dl_list])) print("") - self.u.grab("Press [enter] to return...") + self.u.grab("Press [enter] to return...", timeout=3) return # Only check the dirs if we need to cwd = os.getcwd() @@ -365,7 +365,7 @@ class gibMacOS: print("Files saved to:") print(" {}".format(os.path.join(os.getcwd(), self.saves, self.current_catalog, name))) print("") - self.u.grab("Press [enter] to return...") + self.u.grab("Press [enter] to return...", timeout=3) def show_catalog_url(self): self.resize()