path location
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user