mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2025-01-07 18:47:44 +01:00
Add timeout grabs in download_prod()
To make it at least somewhat usable for non-interactive use.
This commit is contained in:
parent
62860db43b
commit
10f5330d26
@ -295,7 +295,7 @@ class gibMacOS:
|
|||||||
print("")
|
print("")
|
||||||
print("There were no files to download")
|
print("There were no files to download")
|
||||||
print("")
|
print("")
|
||||||
self.u.grab("Press [enter] to return...")
|
self.u.grab("Press [enter] to return...", timeout=3)
|
||||||
return
|
return
|
||||||
c = 0
|
c = 0
|
||||||
done = []
|
done = []
|
||||||
@ -305,7 +305,7 @@ class gibMacOS:
|
|||||||
print("{}:\n".format(name))
|
print("{}:\n".format(name))
|
||||||
print("\n".join([" - {} \n --> {}".format(os.path.basename(x), x) for x in dl_list]))
|
print("\n".join([" - {} \n --> {}".format(os.path.basename(x), x) for x in dl_list]))
|
||||||
print("")
|
print("")
|
||||||
self.u.grab("Press [enter] to return...")
|
self.u.grab("Press [enter] to return...", timeout=3)
|
||||||
return
|
return
|
||||||
# Only check the dirs if we need to
|
# Only check the dirs if we need to
|
||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
@ -365,7 +365,7 @@ class gibMacOS:
|
|||||||
print("Files saved to:")
|
print("Files saved to:")
|
||||||
print(" {}".format(os.path.join(os.getcwd(), self.saves, self.current_catalog, name)))
|
print(" {}".format(os.path.join(os.getcwd(), self.saves, self.current_catalog, name)))
|
||||||
print("")
|
print("")
|
||||||
self.u.grab("Press [enter] to return...")
|
self.u.grab("Press [enter] to return...", timeout=3)
|
||||||
|
|
||||||
def show_catalog_url(self):
|
def show_catalog_url(self):
|
||||||
self.resize()
|
self.resize()
|
||||||
|
Loading…
Reference in New Issue
Block a user