From 7fc8519e4a76cf991e888767fd9402cf239d016d Mon Sep 17 00:00:00 2001 From: work Date: Tue, 25 Apr 2023 12:20:06 +0300 Subject: [PATCH] path location --- download books in bulks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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