From 7b3ac61156635095bb86eebd8c7818f6c83beb23 Mon Sep 17 00:00:00 2001 From: Kaias Blackwood Date: Thu, 14 Aug 2025 17:47:21 +0000 Subject: [PATCH] Fixed image download link issue. Added support for e9ai domain. --- src/engines/e621.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engines/e621.ts b/src/engines/e621.ts index 72cfa23..f22a78e 100644 --- a/src/engines/e621.ts +++ b/src/engines/e621.ts @@ -5,7 +5,7 @@ export default class e621 extends ScrapeEngineBase { name = "e621"; features: ScrapeEngineFeature[] = ["content", "rating", "resolution", "tags", "tag_category", "source"]; notes = []; - supportedHosts = ["e621.net", "e926.net"]; + supportedHosts = ["e621.net", "e926.net", "e6ai.net"]; scrapeDocument(document: Document): ScrapeResult { const result = new ScrapeResult(this.name); @@ -13,7 +13,7 @@ export default class e621 extends ScrapeEngineBase { post.pageUrl = document.location.href; // Set image url - const downloadEl = document.querySelector("#image-download-link > a") as HTMLAnchorElement; + const downloadEl = document.querySelector(".ptbr-fullscreen > a") as HTMLAnchorElement; post.contentUrl = downloadEl?.href; // Set content type