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' }, }; 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 { diff --git a/src/manifest.json b/src/manifest.json index 0a9d1f0..1761243 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.com/*", + "https://madiator.com/*", "tabs", "storage" ], 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; 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' },