mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 13:33:25 +00:00
Merge branch 'dev' into embeds
This commit is contained in:
@@ -23,7 +23,7 @@ export const fileMoonScraper = makeEmbed({
|
||||
const embedHtml = load(embedRes);
|
||||
const evalCode = embedHtml('script').text().match(evalCodeRegex);
|
||||
if (!evalCode) throw new Error('Failed to find eval code');
|
||||
const unpacked = unpack(evalCode[1]);
|
||||
const unpacked = unpack(evalCode[0]);
|
||||
const file = fileRegex.exec(unpacked);
|
||||
if (!file?.[1]) throw new Error('Failed to find file');
|
||||
|
||||
@@ -53,7 +53,7 @@ export const fileMoonScraper = makeEmbed({
|
||||
id: 'primary',
|
||||
type: 'hls',
|
||||
playlist: file[1],
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
flags: [],
|
||||
captions,
|
||||
},
|
||||
],
|
||||
|
@@ -1,4 +1,3 @@
|
||||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { makeEmbed } from '@/providers/base';
|
||||
import { Caption, getCaptionTypeFromUrl, labelToLanguageCode } from '@/providers/captions';
|
||||
|
||||
@@ -54,7 +53,11 @@ export const vidplayScraper = makeEmbed({
|
||||
id: 'primary',
|
||||
type: 'hls',
|
||||
playlist: source,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
flags: [],
|
||||
headers: {
|
||||
Referer: url.origin,
|
||||
Origin: url.origin,
|
||||
},
|
||||
captions,
|
||||
thumbnailTrack,
|
||||
},
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// This file is based on https://github.com/Ciarands/vidsrc-to-resolver/blob/dffa45e726a4b944cb9af0c9e7630476c93c0213/vidsrc.py#L16
|
||||
// Full credits to @Ciarands!
|
||||
|
||||
const DECRYPTION_KEY = '8z5Ag5wgagfsOuhz';
|
||||
const DECRYPTION_KEY = 'WXrUARXb1aDLaZjI';
|
||||
|
||||
export const decodeBase64UrlSafe = (str: string) => {
|
||||
const standardizedInput = str.replace(/_/g, '/').replace(/-/g, '+');
|
||||
|
@@ -1,6 +1,5 @@
|
||||
import { load } from 'cheerio';
|
||||
|
||||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { SourcererEmbed, SourcererOutput, makeSourcerer } from '@/providers/base';
|
||||
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||
|
||||
@@ -78,6 +77,6 @@ export const vidSrcToScraper = makeSourcerer({
|
||||
name: 'VidSrcTo',
|
||||
scrapeMovie: universalScraper,
|
||||
scrapeShow: universalScraper,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
flags: [],
|
||||
rank: 130,
|
||||
});
|
||||
|
Reference in New Issue
Block a user