From cf071e0c1cf46fb2fbaf6c2a7bea27082d5ad123 Mon Sep 17 00:00:00 2001 From: Morea Date: Sun, 16 Jun 2024 08:48:08 +0200 Subject: [PATCH] Fix log --- PTP - Add IMDB Cover/PTP - Add IMDB Cover.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/PTP - Add IMDB Cover/PTP - Add IMDB Cover.js b/PTP - Add IMDB Cover/PTP - Add IMDB Cover.js index a254bcf..09b68dc 100644 --- a/PTP - Add IMDB Cover/PTP - Add IMDB Cover.js +++ b/PTP - Add IMDB Cover/PTP - Add IMDB Cover.js @@ -169,10 +169,7 @@ await (async function () { if (imdbId.startsWith("http")) imdbId = "tt" + imdbId.split("/tt")[1].split("/")[0]; let url = await fetchCover(imdbId); - console.log(url); - if (!url || (await isSmall(url))) { - url = await fetchCoverFromMainPage(imdbId); - } + console.log("Fetched cover: " + url); coverInput.value = await uploadToPtpimg(url, apiToken); coverInput.dispatchEvent(new Event("change")); } catch (err) {