Skip to content

Commit

Permalink
Fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
Morea committed Jun 16, 2024
1 parent 85ca12c commit cf071e0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions PTP - Add IMDB Cover/PTP - Add IMDB Cover.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cf071e0

Please sign in to comment.