From 4613f5df4aed784eb35c344dd85846c92e0c9e73 Mon Sep 17 00:00:00 2001 From: Marvin Alexander Krebber Date: Sun, 17 Nov 2024 09:50:50 +0100 Subject: [PATCH] version 1.1.51 --- AuthorHours.json | 2 +- chrome/manifest.json | 2 +- chrome/popup/popup.html | 2 +- chrome/popup/settings.html | 10 ++++++++-- chrome/skipper.js | 10 +++++----- firefox/manifest.json | 2 +- firefox/popup/popup.html | 2 +- firefox/popup/settings.html | 4 ++-- firefox/skipper.js | 2 +- package.json | 2 +- 10 files changed, 22 insertions(+), 16 deletions(-) diff --git a/AuthorHours.json b/AuthorHours.json index cf9d57e0..fb2cc63a 100644 --- a/AuthorHours.json +++ b/AuthorHours.json @@ -1 +1 @@ -{"time":"500h30m8s"} \ No newline at end of file +{"time":"501h37m14s"} \ No newline at end of file diff --git a/chrome/manifest.json b/chrome/manifest.json index cbeb6673..fc07c53d 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "__MSG_extensionName__", "description": "__MSG_extensionDescription__", - "version": "1.1.50", + "version": "1.1.51", "homepage_url": "https://github.com/Dreamlinerm/Netflix-Prime-Auto-Skip", "icons": { diff --git a/chrome/popup/popup.html b/chrome/popup/popup.html index 5cafb45b..77b529f8 100644 --- a/chrome/popup/popup.html +++ b/chrome/popup/popup.html @@ -32,7 +32,7 @@

pageTitle

-

v.1.1.50

+

v.1.1.51

pageTitle

-

v.1.1.50

+

v.1.1.51

ImportSettings

Changelog

-

1.1.50

+

1.1.51

+
    +
  • Netflix wrong TMDB ratings for movies with dash
  • +
+
+
+

1.1.51

  • implemented GarbageCollection for DBcache, which deletes ratings older than 30 days
diff --git a/chrome/skipper.js b/chrome/skipper.js index 314f8848..84775e61 100644 --- a/chrome/skipper.js +++ b/chrome/skipper.js @@ -32,7 +32,7 @@ const isEdge = /edg/i.test(ua); const htmlLang = document.documentElement.lang; const date = new Date(); const today = date.toISOString().split("T")[0]; -const version = "1.1.50"; +const version = "1.1.51"; if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO) { /* eslint-env root:true */ // global variables in localStorage @@ -413,7 +413,7 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO } let title; - if (isNetflix) title = card?.parentElement?.getAttribute("aria-label").split(" – ")[0]; + if (isNetflix) title = card?.parentElement?.getAttribute("aria-label")?.split(" (")[0]; // S2: E3 remove this part else if (isDisney) { title = card?.getAttribute("aria-label")?.replace(" Disney+ Original", "")?.replace(" STAR Original", ""); @@ -509,14 +509,14 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO if (rating <= 7) return "rgb(245, 197, 24)"; //#f5c518 return "rgb(0, 166, 0)"; } - function getTMDBUrl(id, media_type, title) { - return `https://www.themoviedb.org/${media_type}/${id}-${title.toLowerCase().replace(/ /g, "-")}`; + function getTMDBUrl(id, media_type) { + return `https://www.themoviedb.org/${media_type}/${id}`; } async function setRatingOnCard(card, data, title) { let div = document.createElement(data?.id ? "a" : "div"); if (data?.id) { - div.href = getTMDBUrl(data.id, data.media_type, title); + div.href = getTMDBUrl(data.id, data.media_type); div.target = "_blank"; } const vote_count = data?.vote_count || 100; diff --git a/firefox/manifest.json b/firefox/manifest.json index 02650ab4..a8dd0f7c 100644 --- a/firefox/manifest.json +++ b/firefox/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "__MSG_extensionName__", "description": "__MSG_extensionDescription__", - "version": "1.1.50", + "version": "1.1.51", "homepage_url": "https://github.com/Dreamlinerm/Netflix-Prime-Auto-Skip", "icons": { "16": "icons/NetflixAmazon Auto-Skip.svg", diff --git a/firefox/popup/popup.html b/firefox/popup/popup.html index 9a7a1d16..68d17d8b 100644 --- a/firefox/popup/popup.html +++ b/firefox/popup/popup.html @@ -32,7 +32,7 @@

pageTitle

-

v.1.1.50

+

v.1.1.51

pageTitle

-

v.1.1.50

+

v.1.1.51

1.1.51
-

1.1.50

+

1.1.51

  • implemented GarbageCollection for DBcache, which deletes ratings older than 30 days
diff --git a/firefox/skipper.js b/firefox/skipper.js index 226ae183..0379ddbd 100644 --- a/firefox/skipper.js +++ b/firefox/skipper.js @@ -32,7 +32,7 @@ const isEdge = /edg/i.test(ua); const htmlLang = document.documentElement.lang; const date = new Date(); const today = date.toISOString().split("T")[0]; -const version = "1.1.50"; +const version = "1.1.51"; if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO) { /* eslint-env root:true */ // global variables in localStorage diff --git a/package.json b/package.json index 38731be3..c7931f94 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "streaming-enhanced", - "version": "1.1.50", + "version": "1.1.51", "description": "Automatically skip Ads, Intros, Credits and add Speed Control, etc. on Netflix, Prime video, Disney+ & Hotstar and Crunchyroll.", "scripts": { "start": "web-ext run --keep-profile-changes --firefox-profile=test --profile-create-if-missing",