diff --git a/download books in bulks.py b/download books in bulks.py index 56d60f0..7c2ba21 100644 --- a/download books in bulks.py +++ b/download books in bulks.py @@ -76,8 +76,8 @@ def do_action_now(index: int): files = list(SOURCES[index]) for s in SOURCES[index]: if SOURCES[index][s]: - if not os.path.exists(f"ignore/{files.index(s):04}.jpg"): - with open(f"ignore/{files.index(s):04}.jpg","wb") as F: + if not os.path.exists(f"ignore/{name}/{files.index(s):04}.jpg"): + with open(f"ignore/{name}/{files.index(s):04}.jpg","wb") as F: F.write(urllib3.PoolManager().request("GET", SOURCES[index][s]).data) # files[files.index(s)] = urllib3.PoolManager().request("GET", SOURCES[index][s]).data return files