path location

This commit is contained in:
work
2023-04-25 12:20:06 +03:00
parent 8cbdcee256
commit 7fc8519e4a

View File

@@ -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