mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-12 20:50:20 +00:00
Update m4u
This commit is contained in:
parent
83ba2bf8d1
commit
88141f74ec
2 changed files with 3 additions and 6 deletions
|
|
@ -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: [],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue