diff --git a/scraper/server/__main__.py b/scraper/server/__main__.py index 25ae609..40f009e 100644 --- a/scraper/server/__main__.py +++ b/scraper/server/__main__.py @@ -123,8 +123,7 @@ def get_image(post_id: int = None): if path.exists(): return send_file(path) else: - post = py34.Post(entry.post, entry.dir, entry.image, entry.tags, entry.thumbnail) - image = post.get_image_data() + image = py34.scraper.scraper.get(py34.url.ImageURL(entry.dir, entry.image, enttype2ext(entry.type))) with open(path, "wb") as file: file.write(image) return send_file(path)