mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-21 08:31:57 +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 { load } from 'cheerio';
|
||||||
import crypto from 'crypto-js';
|
import crypto from 'crypto-js';
|
||||||
|
|
||||||
import { flags } from '@/entrypoint/utils/targets';
|
|
||||||
import { makeEmbed } from '@/providers/base';
|
import { makeEmbed } from '@/providers/base';
|
||||||
import { convertPlaylistsToDataUrls } from '@/utils/playlist';
|
|
||||||
|
|
||||||
const { AES, MD5 } = crypto;
|
const { AES, MD5 } = crypto;
|
||||||
|
|
||||||
|
|
@ -115,9 +113,9 @@ export const playm4uNMScraper = makeEmbed({
|
||||||
{
|
{
|
||||||
id: 'primary',
|
id: 'primary',
|
||||||
type: 'hls',
|
type: 'hls',
|
||||||
playlist: await convertPlaylistsToDataUrls(ctx.proxiedFetcher, apiRes.data),
|
playlist: apiRes.data,
|
||||||
captions: [],
|
captions: [],
|
||||||
flags: [flags.CORS_ALLOWED],
|
flags: [],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
// thanks Paradox_77
|
// thanks Paradox_77
|
||||||
import { load } from 'cheerio';
|
import { load } from 'cheerio';
|
||||||
|
|
||||||
import { flags } from '@/entrypoint/utils/targets';
|
|
||||||
import { SourcererEmbed, makeSourcerer } from '@/providers/base';
|
import { SourcererEmbed, makeSourcerer } from '@/providers/base';
|
||||||
import { compareMedia } from '@/utils/compare';
|
import { compareMedia } from '@/utils/compare';
|
||||||
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||||
|
|
@ -151,7 +150,7 @@ export const m4uScraper = makeSourcerer({
|
||||||
id: 'm4ufree',
|
id: 'm4ufree',
|
||||||
name: 'M4UFree',
|
name: 'M4UFree',
|
||||||
rank: 125,
|
rank: 125,
|
||||||
flags: [flags.CORS_ALLOWED],
|
flags: [],
|
||||||
scrapeMovie: universalScraper,
|
scrapeMovie: universalScraper,
|
||||||
scrapeShow: universalScraper,
|
scrapeShow: universalScraper,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue