diff --git a/package.json b/package.json index 131fbfa2..f58b8eab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "movie-web", - "version": "4.3.0", + "version": "4.3.1", "private": true, "homepage": "https://movie-web.app", "scripts": { diff --git a/src/components/player/hooks/useSourceSelection.ts b/src/components/player/hooks/useSourceSelection.ts index 3813fa9f..a7f06b4d 100644 --- a/src/components/player/hooks/useSourceSelection.ts +++ b/src/components/player/hooks/useSourceSelection.ts @@ -42,7 +42,7 @@ export function useEmbedScraping( let result: EmbedOutput | undefined; if (!meta) return; try { - if (providerApiUrl) { + if (providerApiUrl && !isExtensionActiveCached()) { const baseUrlMaker = makeProviderUrl(providerApiUrl); const conn = await connectServerSideEvents( baseUrlMaker.scrapeEmbed(embedId, url), @@ -107,7 +107,7 @@ export function useSourceScraping(sourceId: string | null, routerId: string) { let result: SourcererOutput | undefined; try { - if (providerApiUrl) { + if (providerApiUrl && !isExtensionActiveCached()) { const baseUrlMaker = makeProviderUrl(providerApiUrl); const conn = await connectServerSideEvents( baseUrlMaker.scrapeSource(sourceId, scrapeMedia), @@ -149,7 +149,7 @@ export function useSourceScraping(sourceId: string | null, routerId: string) { let embedResult: EmbedOutput | undefined; if (!meta) return; try { - if (providerApiUrl) { + if (providerApiUrl && !isExtensionActiveCached()) { const baseUrlMaker = makeProviderUrl(providerApiUrl); const conn = await connectServerSideEvents( baseUrlMaker.scrapeEmbed( diff --git a/src/hooks/useProviderScrape.tsx b/src/hooks/useProviderScrape.tsx index 84aeec4e..932c8449 100644 --- a/src/hooks/useProviderScrape.tsx +++ b/src/hooks/useProviderScrape.tsx @@ -159,7 +159,7 @@ export function useScrape() { const startScraping = useCallback( async (media: ScrapeMedia) => { const providerApiUrl = getLoadbalancedProviderApiUrl(); - if (providerApiUrl) { + if (providerApiUrl && !isExtensionActiveCached()) { startScrape(); const baseUrlMaker = makeProviderUrl(providerApiUrl); const conn = await connectServerSideEvents(