Fix m4u (kinda)

This commit is contained in:
TPN 2024-12-07 15:03:43 +00:00
parent 65db2b0fb1
commit 5636bd46a0
No known key found for this signature in database
GPG key ID: 40AE091637892B91

View file

@ -8,7 +8,7 @@ import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
import { makeCookieHeader, parseSetCookie } from '@/utils/cookie';
import { NotFoundError } from '@/utils/errors';
let baseUrl = 'https://m4ufree.tv';
let baseUrl = 'https://m4ufree.se';
const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) => {
// this redirects to ww1.m4ufree.tv or ww2.m4ufree.tv
@ -133,7 +133,7 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) =>
}),
);
const url = iframePage$('iframe').attr('src');
const url = iframePage$('iframe').attr('src')?.trim();
if (!url) continue;
ctx.progress(100);