Update m4u

This commit is contained in:
TPN 2024-07-03 13:59:10 +01:00
parent 83ba2bf8d1
commit 88141f74ec
No known key found for this signature in database
GPG key ID: 40AE091637892B91
2 changed files with 3 additions and 6 deletions

View file

@ -1,9 +1,7 @@
import { load } from 'cheerio';
import crypto from 'crypto-js';
import { flags } from '@/entrypoint/utils/targets';
import { makeEmbed } from '@/providers/base';
import { convertPlaylistsToDataUrls } from '@/utils/playlist';
const { AES, MD5 } = crypto;
@ -115,9 +113,9 @@ export const playm4uNMScraper = makeEmbed({
{
id: 'primary',
type: 'hls',
playlist: await convertPlaylistsToDataUrls(ctx.proxiedFetcher, apiRes.data),
playlist: apiRes.data,
captions: [],
flags: [flags.CORS_ALLOWED],
flags: [],
},
],
};

View file

@ -2,7 +2,6 @@
// thanks Paradox_77
import { load } from 'cheerio';
import { flags } from '@/entrypoint/utils/targets';
import { SourcererEmbed, makeSourcerer } from '@/providers/base';
import { compareMedia } from '@/utils/compare';
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
@ -151,7 +150,7 @@ export const m4uScraper = makeSourcerer({
id: 'm4ufree',
name: 'M4UFree',
rank: 125,
flags: [flags.CORS_ALLOWED],
flags: [],
scrapeMovie: universalScraper,
scrapeShow: universalScraper,
});