From a190acd1d87c57e44b8ed6e9e1639723fa34412c Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sun, 6 Mar 2022 09:28:44 +0100 Subject: [PATCH] set pathname for kodi --- chrome/manifest.json | 2 +- chrome/script.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/manifest.json b/chrome/manifest.json index d261f0f..cf655ae 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -7,7 +7,7 @@ "48": "icon-48.png", "128": "icon-128.png" }, - "version": "110.0", + "version": "111.0", "manifest_version": 3, "host_permissions": ["http://127.0.0.1:4000/jsonrpc"], "permissions": ["tabs"], diff --git a/chrome/script.js b/chrome/script.js index 50d4620..bac3971 100644 --- a/chrome/script.js +++ b/chrome/script.js @@ -74,6 +74,7 @@ document.addEventListener("DOMContentLoaded", () => { search.append("videoid", video_id) } } else { + newurl.pathname = oldurl.pathname search.append("provider", provider) search.append("raw", "true") }