From d23fda84d53f660d7b19ef702891effcbb64b682 Mon Sep 17 00:00:00 2001 From: kodxana Date: Sat, 28 Aug 2021 21:56:06 +0200 Subject: [PATCH 1/6] Update manifest.json --- src/manifest.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/manifest.json b/src/manifest.json index 0a9d1f0..f41ce8e 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,12 +1,14 @@ { "name": "Watch on LBRY", - "version": "1.7.2", + "version": "1.7.3", "permissions": [ "https://www.youtube.com/", "https://invidio.us/channel/*", "https://invidio.us/watch?v=*", - "https://api.lbry.com/*", + "https://api.odysee.com/*", "https://lbry.tv/*", + "https://odysee.tv/*", + "https://madiator.com/*", "tabs", "storage" ], From e2f46d2d08786ab0be3b438eabcb546e9c6f6d0c Mon Sep 17 00:00:00 2001 From: kodxana Date: Sat, 28 Aug 2021 21:56:20 +0200 Subject: [PATCH 2/6] Update manifest.json --- src/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manifest.json b/src/manifest.json index f41ce8e..1761243 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -7,7 +7,7 @@ "https://invidio.us/watch?v=*", "https://api.odysee.com/*", "https://lbry.tv/*", - "https://odysee.tv/*", + "https://odysee.com/*", "https://madiator.com/*", "tabs", "storage" From 11334c768938e0fe62ff00cb77b831f2b36e6d1d Mon Sep 17 00:00:00 2001 From: kodxana Date: Sat, 28 Aug 2021 21:56:57 +0200 Subject: [PATCH 3/6] Update yt.ts --- src/common/yt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/yt.ts b/src/common/yt.ts index 7cd5df3..c72565b 100644 --- a/src/common/yt.ts +++ b/src/common/yt.ts @@ -2,7 +2,7 @@ import chunk from 'lodash/chunk'; import groupBy from 'lodash/groupBy'; import pickBy from 'lodash/pickBy'; -const LBRY_API_HOST = 'https://api.lbry.com'; +const LBRY_API_HOST = 'https://api.odysee.com'; const QUERY_CHUNK_SIZE = 300; interface YtResolverResponse { From 9532d45b153337617c4d4dbe92db248431e41611 Mon Sep 17 00:00:00 2001 From: kodxana Date: Sat, 28 Aug 2021 21:58:10 +0200 Subject: [PATCH 4/6] Update settings.ts --- src/common/settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/settings.ts b/src/common/settings.ts index f333767..795a95a 100644 --- a/src/common/settings.ts +++ b/src/common/settings.ts @@ -6,7 +6,7 @@ export interface LbrySettings { export const DEFAULT_SETTINGS: LbrySettings = { enabled: true, redirect: 'lbry.tv' }; export const redirectDomains = { - 'lbry.tv': { prefix: 'https://lbry.tv/', display: 'lbry.tv' }, + 'madiator.com': { prefix: 'https://madiator.com/', display: 'madiator.com' }, odysee: { prefix: 'https://odysee.com/', display: 'odysee' }, app: { prefix: 'lbry://', display: 'App' }, }; From 014ad21fd6fcfe93a964bb0d74c842260de9191a Mon Sep 17 00:00:00 2001 From: kodxana Date: Sat, 28 Aug 2021 21:59:18 +0200 Subject: [PATCH 5/6] Update tabOnUpdated.ts --- src/scripts/tabOnUpdated.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/tabOnUpdated.ts b/src/scripts/tabOnUpdated.ts index e73fe73..053d919 100644 --- a/src/scripts/tabOnUpdated.ts +++ b/src/scripts/tabOnUpdated.ts @@ -35,7 +35,7 @@ async function ctxFromURL(url: string): Promise { // handles lbry.tv -> lbry app redirect chrome.tabs.onUpdated.addListener(async (tabId, changeInfo, { url: tabUrl }) => { const { enabled, redirect } = await getSettingsAsync('enabled', 'redirect'); - if (!enabled || redirect !== 'app' || !changeInfo.url || !tabUrl?.startsWith('https://lbry.tv/')) return; + if (!enabled || redirect !== 'app' || !changeInfo.url || !tabUrl?.startsWith('https://odysee.com/')) return; const url = appRedirectUrl(tabUrl, { encode: true }); if (!url) return; From 972f5e7415ba0c09d9271bc49d8fe0ffe8f79397 Mon Sep 17 00:00:00 2001 From: kodxana Date: Sat, 28 Aug 2021 22:00:01 +0200 Subject: [PATCH 6/6] Update ytContent.tsx --- src/scripts/ytContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/ytContent.tsx b/src/scripts/ytContent.tsx index 522fea3..814aa22 100644 --- a/src/scripts/ytContent.tsx +++ b/src/scripts/ytContent.tsx @@ -20,7 +20,7 @@ interface ButtonSettings { const buttonSettings: Record = { app: { text: 'Watch on LBRY', icon: chrome.runtime.getURL('icons/lbry/lbry-logo.svg') }, - 'lbry.tv': { text: 'Watch on LBRY', icon: chrome.runtime.getURL('icons/lbry/lbry-logo.svg') }, + 'madiator.com': { text: 'Watch on LBRY', icon: chrome.runtime.getURL('icons/lbry/lbry-logo.svg') }, odysee: { text: 'Watch on Odysee', icon: chrome.runtime.getURL('icons/lbry/odysee-logo.svg'), style: { backgroundColor: '#1e013b' },