Skip to content

Commit

Permalink
Prime wont load Ratings for Live tv
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Nov 25, 2024
1 parent 69aeedf commit a87a6ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions firefox/popup/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ <h2>Changelog</h2>
<div class="line flex">
<h2>1.1.53</h2>
<ul>
<li>Prime wont load Ratings for Live tv</li>
<li>Prime fixed TMDB title card on chrome.</li>
<li>TMDB ratings added media_type to query, like movie e.g., because shows with same name but different
type</li>
Expand Down
7 changes: 5 additions & 2 deletions firefox/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,11 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO
?.split(": The complete")[0]
);
}
if (type == 0) title = fixTitle(card.getAttribute("data-card-title"));
else if (type == 1) title = fixTitle(card.querySelector("a")?.getAttribute("aria-label"));
// detail means not live shows
if (card.querySelector("a").href.includes("detail")) {
if (type == 0) title = fixTitle(card.getAttribute("data-card-title"));
else if (type == 1) title = fixTitle(card.querySelector("a")?.getAttribute("aria-label"));
}
if (url.includes("video/tv")) media_type = "tv";
else if (url.includes("video/movie")) media_type = "movie";
else media_type = getMediaType(card.getAttribute("data-card-entity-type"));
Expand Down

0 comments on commit a87a6ce

Please sign in to comment.