From 355d86ce1906adce2c9b4e1edc147a14b4f48a97 Mon Sep 17 00:00:00 2001 From: Ivan Evans <74743263+Pasithea0@users.noreply.github.com> Date: Thu, 2 Jan 2025 11:15:45 -0700 Subject: [PATCH] disable m4ufree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updated source ID rules to fix cli, but still won't load in player 🤷‍♂️ --- src/providers/sources/m4ufree.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/providers/sources/m4ufree.ts b/src/providers/sources/m4ufree.ts index 5ee841e..f1ac0ce 100644 --- a/src/providers/sources/m4ufree.ts +++ b/src/providers/sources/m4ufree.ts @@ -113,11 +113,16 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) => for (const source of sources) { let embedId; - if (source.name === 'm') - embedId = 'playm4u-m'; // TODO - else if (source.name === 'nm') embedId = 'playm4u-nm'; - else if (source.name === 'h') embedId = 'hydrax'; - else continue; + + if (source.name === 'm') { + embedId = 'playm4u-m'; + } else if (source.name === 'nm') { + continue; + } else if (source.name === 'h') { + embedId = 'playm4u-nm'; + } else { + continue; + } const iframePage$ = load( await ctx.proxiedFetcher('/ajax', { @@ -149,7 +154,8 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) => export const m4uScraper = makeSourcerer({ id: 'm4ufree', name: 'M4UFree', - rank: 125, + rank: 60, + disabled: true, flags: [], scrapeMovie: universalScraper, scrapeShow: universalScraper,