revert
This commit is contained in:
parent
ef5c8c6b8d
commit
fba9d80dc3
@ -25,7 +25,7 @@ def drive_list(path):
|
|||||||
return proc.stdout.decode().split("\n")
|
return proc.stdout.decode().split("\n")
|
||||||
|
|
||||||
|
|
||||||
def download(path, file, force=False):
|
def download(path, file):
|
||||||
if not force and os.path.isfile(os.path.join(path, file)):
|
if not force and os.path.isfile(os.path.join(path, file)):
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ def download(path, file, force=False):
|
|||||||
# os.remove(f"{path}/{file}")
|
# os.remove(f"{path}/{file}")
|
||||||
print("Waiting for 10 minutes ...")
|
print("Waiting for 10 minutes ...")
|
||||||
time.sleep(10 * 60)
|
time.sleep(10 * 60)
|
||||||
download(path, file, True)
|
download(path, file)
|
||||||
|
|
||||||
|
|
||||||
req_titles = requests.get(
|
req_titles = requests.get(
|
||||||
@ -114,12 +114,12 @@ for base in bases:
|
|||||||
if not id:
|
if not id:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
download("nsz/base", base, force)
|
download("nsz/base", base)
|
||||||
|
|
||||||
for dlc in dlcs:
|
for dlc in dlcs:
|
||||||
if id in dlc:
|
if id in dlc:
|
||||||
download("nsz/dlc", dlc, force)
|
download("nsz/dlc", dlc)
|
||||||
|
|
||||||
for update in updates:
|
for update in updates:
|
||||||
if id in update:
|
if id in update:
|
||||||
download("nsz/updates", update, force)
|
download("nsz/updates", update)
|
||||||
|
Loading…
Reference in New Issue
Block a user