Fix
Browse files- Client/hunt.py +1 -3
Client/hunt.py
CHANGED
|
@@ -63,11 +63,9 @@ for index in indexs:
|
|
| 63 |
z.extractall("images/Stash")
|
| 64 |
extracted_files.extend(z.namelist())
|
| 65 |
|
| 66 |
-
|
| 67 |
for i, post_id in enumerate(post_ids.keys()):
|
| 68 |
-
print(f"Moving1 {post_id}.png")
|
| 69 |
if f"{post_id}.png" in images_cache:
|
| 70 |
-
print(f"Moving2 {post_id}.png")
|
| 71 |
if not os.path.exists(f"images/{group_name}/{i}_{post_id}.png"):
|
| 72 |
os.link(f"images/Stash/{post_id}.png", f"images/{group_name}/{i}_{post_id}.png")
|
| 73 |
|
|
|
|
| 63 |
z.extractall("images/Stash")
|
| 64 |
extracted_files.extend(z.namelist())
|
| 65 |
|
| 66 |
+
images_cache = os.listdir("images/Stash")
|
| 67 |
for i, post_id in enumerate(post_ids.keys()):
|
|
|
|
| 68 |
if f"{post_id}.png" in images_cache:
|
|
|
|
| 69 |
if not os.path.exists(f"images/{group_name}/{i}_{post_id}.png"):
|
| 70 |
os.link(f"images/Stash/{post_id}.png", f"images/{group_name}/{i}_{post_id}.png")
|
| 71 |
|