From 361fe53a7e8a48e42ac8d7f4c07f33bf4ed178e2 Mon Sep 17 00:00:00 2001 From: Starscouts Date: Sun, 14 Jul 2024 14:28:01 +0200 Subject: Fixes for Windows --- intimate/src/fetcher.js | 1 + 1 file changed, 1 insertion(+) mode change 100755 => 100644 intimate/src/fetcher.js (limited to 'intimate/src/fetcher.js') diff --git a/intimate/src/fetcher.js b/intimate/src/fetcher.js old mode 100755 new mode 100644 index 4375fe5..f5eb236 --- a/intimate/src/fetcher.js +++ b/intimate/src/fetcher.js @@ -99,6 +99,7 @@ async function slideshowMain() { if (!config.modules.derpibooru['faunerie_cache']) return i; if (!fs.existsSync(config.modules.derpibooru['faunerie_cache'] + "/images/" + i['sha512_hash'].substring(0, 1) + "/" + i['sha512_hash'].substring(0, 2) + "/" + i['sha512_hash'].substring(0, 3) + "/10" + i['id'] + ".bin")) return i; i['view_url'] = "pbip://" + config.modules.derpibooru['faunerie_cache'] + "/images/" + i['sha512_hash'].substring(0, 1) + "/" + i['sha512_hash'].substring(0, 2) + "/" + i['sha512_hash'].substring(0, 3) + "/10" + i['id'] + ".bin"; + if (process.platform === "win32") i['view_url'] = i['view_url'].replaceAll("\\", "/").replaceAll("pbip://", "pbip:///"); return i; })); window.displayQueue = window.displayQueue.sort(() => Math.random() - Math.random()); -- cgit