From 6825c78a46fe6dc8ac95d2d5271f557c0436f77d Mon Sep 17 00:00:00 2001 From: Phil Date: Mon, 31 May 2021 16:28:22 +0200 Subject: [PATCH] added fix --- src/engines/e621.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engines/e621.ts b/src/engines/e621.ts index 6770a00..ded1158 100644 --- a/src/engines/e621.ts +++ b/src/engines/e621.ts @@ -16,7 +16,8 @@ export default class e621 implements ScrapeEngine { // Set image url const downloadEl = document.querySelector("#image-download-link > a") as HTMLAnchorElement; - post.contentUrl = downloadEl?.href; + // e926 doesnt allow downloads from direct links for some reason. so as a workaround we are using the e621 mirror; theirfor replacing + post.contentUrl = downloadEl?.href.replace(/\.e926\.net\/data/, '.e621.net/data'); if (post.contentUrl == undefined) { return result;