Skip to content

Commit

Permalink
no Score found
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Oct 27, 2023
1 parent ca6426d commit 2d1fd15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firefox/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) {
// themoviedb
const compiledData = { score: data?.results?.[0]?.vote_average };
DBCache[title] = compiledData;
if (!compiledData?.score) log("no Score found", title, data);
if (Rating) setRatingOnCard(card, compiledData, title);
else {
setAlternativesOnCard(card, compiledData, title);
Expand Down Expand Up @@ -271,7 +272,7 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) {
if (title && lastTitle != title && !title.includes("Netflix") && !title.includes("Prime Video")) {
// sometimes more than one image is loaded for the same title
lastTitle = title;
if (!DBCache[title]) {
if (!DBCache[title]?.score) {
getMovieInfo(title, card);
// log("no info in DBcache", title);
} else {
Expand Down Expand Up @@ -379,7 +380,6 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) {
// div.textContent = title;
} else {
div.textContent = "?";
log("no Score found", title, data);
}
if (isNetflix) card.appendChild(div);
else if (isDisney) card.parentElement.appendChild(div);
Expand Down

0 comments on commit 2d1fd15

Please sign in to comment.