diff options
Diffstat (limited to 'intimate/index.html')
-rw-r--r--[-rwxr-xr-x] | intimate/index.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intimate/index.html b/intimate/index.html index aa8eac0..3fc0e32 100755..100644 --- a/intimate/index.html +++ b/intimate/index.html @@ -126,6 +126,7 @@ 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; })[0]["view_url"]; |