Skip to content

Commit

Permalink
dont filter specific streaming service
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Sep 18, 2023
1 parent 9f56a3e commit 84a96a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chrome/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) {
if (data != undefined && data != "") {
// "https://www.justwatch.com" + data.items[0].full_path;
const jWURL = data?.items?.[0]?.full_path;
// flatrate = free with subscription (netflix, amazon prime, disney+)
let offers = data?.items?.[0].offers?.filter((x) => x.monetization_type == "flatrate" && (x.package_short_name == "amp" || x.package_short_name == "nfx" || x.package_short_name == "dnp"));
// flatrate = free with subscription
// (netflix, amazon prime, disney+) (x.package_short_name == "amp" || x.package_short_name == "nfx" || x.package_short_name == "dnp")
let offers = data?.items?.[0].offers?.filter((x) => x.monetization_type == "flatrate");
// get the first offer of each provider
offers = offers?.filter((x, i) => offers.findIndex((y) => y.provider_id == x.provider_id) == i);
// map offers to only package_short_name, country and standard_web url
Expand Down

0 comments on commit 84a96a5

Please sign in to comment.