From fed8678ef1d8b05e187e149b1f339885c0661750 Mon Sep 17 00:00:00 2001 From: Paradox-77 Date: Thu, 14 Mar 2024 22:45:19 +0530 Subject: [PATCH] Fix embedUrl matching for Vidplay and Filemoon sources --- src/providers/sources/vidsrcto/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/sources/vidsrcto/index.ts b/src/providers/sources/vidsrcto/index.ts index 94edc3d..3739ab5 100644 --- a/src/providers/sources/vidsrcto/index.ts +++ b/src/providers/sources/vidsrcto/index.ts @@ -52,7 +52,7 @@ const universalScraper = async (ctx: ShowScrapeContext | MovieScrapeContext): Pr for (const source of sources.result) { if (source.title === 'Vidplay') { - const embedUrl = embedUrls.find((v) => v.includes('vidplay')); + const embedUrl = embedUrls.find((v) => v.match(/https:\/\/(?:[a-zA-Z0-9]{10})\./)); if (!embedUrl) continue; embeds.push({ embedId: 'vidplay', @@ -61,7 +61,7 @@ const universalScraper = async (ctx: ShowScrapeContext | MovieScrapeContext): Pr } if (source.title === 'Filemoon') { - const embedUrl = embedUrls.find((v) => v.includes('filemoon')); + const embedUrl = embedUrls.find((v) => v.includes('kerapoxy')); if (!embedUrl) continue; const fullUrl = new URL(embedUrl); if (subtitleUrl) fullUrl.searchParams.set('sub.info', subtitleUrl);