From b0e754ee392671a05fdc3f6275df873c3b2d1466 Mon Sep 17 00:00:00 2001 From: Kiradien <68683574+Kiradien@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:27:42 -0500 Subject: [PATCH] Update FanFictionParser.js Removed shortUri double-negate; code will run functionally equivalent. --- plugin/js/parsers/FanFictionParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/js/parsers/FanFictionParser.js b/plugin/js/parsers/FanFictionParser.js index 500dc4ea..40f0a323 100644 --- a/plugin/js/parsers/FanFictionParser.js +++ b/plugin/js/parsers/FanFictionParser.js @@ -73,7 +73,7 @@ class FanFictionParser extends Parser { //Shortened URI is not always ideal solution; apparently related to caching on server. let regex = /(https?:\/\/(?:www\.)?\w+\.\w+\/s\/\d+\/\d+)\/[a-z\-0-9]+/i let shortUri = regex.exec(webPage.sourceUrl); - if (!!shortUri) + if (shortUri) { console.log(`Failed to load URI [${webPage.sourceUrl}] - Attempting alternative. [${shortUri[1]}]`); //Await throttle timer again for second page fetch.