Skip to content

Bulk asynchronous downloader for multiple file hosts

Remove redundant data_used (#438)

Arkadiy Illarionova8087c710977
diff --git a/cyberdrop_dl/crawlers/PostImg_Spider.py b/cyberdrop_dl/crawlers/PostImg_Spider.py
index 5e836c4a8..35efcf3e2 100644
--- a/cyberdrop_dl/crawlers/PostImg_Spider.py
+++ b/cyberdrop_dl/crawlers/PostImg_Spider.py
@@ -49,9 +49,8 @@ class PostImgCrawler:
data = {"action": "list", "album": album}
content = []
for i in itertools.count(1):
- data_used = data
- data_used["page"] = i
- data_out = await session.post(URL("https://postimg.cc/json"), data_used)
+ data["page"] = i
+ data_out = await session.post(URL("https://postimg.cc/json"), data)
if data_out['status_code'] != HTTPStatus.OK or not data_out['images']:
break
for item in data_out['images']: