Skip to content

Commit

Permalink
if not already free alternative stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Sep 18, 2023
1 parent 56522b4 commit b2a7fb4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions chrome/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -910,11 +910,14 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) {
console.log("adding stream links");
let title = document.querySelector("h1[data-automation-id='title']")?.textContent?.split(" [")[0];
if (title) {
let card = document.querySelector("div#dv-action-box");
if (!DBCache[title]) {
getMovieInfo(title, card, false);
} else {
setJustWatchOnCard(card, DBCache[title], title);
// if not already free
if (document.querySelector("._1sIAAm")) {
let card = document.querySelector("div#dv-action-box");
if (!DBCache[title]) {
getMovieInfo(title, card, false);
} else {
setJustWatchOnCard(card, DBCache[title], title);
}
}
}
}
Expand Down

0 comments on commit b2a7fb4

Please sign in to comment.