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