make vidify ext only

This commit is contained in:
Pas 2025-08-13 14:46:29 -06:00
parent 4455424f8e
commit 2dfacab40c
2 changed files with 5 additions and 7 deletions

View file

@ -1,5 +1,4 @@
/* eslint-disable no-console */
import { flags } from '@/entrypoint/utils/targets';
import { NotFoundError } from '@/utils/errors';
import { createM3U8ProxyUrl } from '@/utils/proxy';
@ -44,9 +43,9 @@ export function makeVidifyEmbed(id: string, rank: number = 100) {
if (Array.isArray(res.result) && res.result.length > 0) {
const qualities: Record<string, { type: 'mp4'; url: string }> = {};
res.result.forEach((r) => {
res.result.forEach((r: { url: string | string[]; resolution: any }) => {
if (r.url.includes('.mp4')) {
qualities[`${r.resolution}p`] = { type: 'mp4', url: decodeURIComponent(r.url) };
qualities[`${r.resolution}p`] = { type: 'mp4', url: decodeURIComponent(r.url as string) };
}
});
@ -62,7 +61,7 @@ export function makeVidifyEmbed(id: string, rank: number = 100) {
id: 'primary',
type: 'file',
qualities,
flags: [flags.CORS_ALLOWED],
flags: [],
captions: [],
headers: {
Host: 'proxy-worker.himanshu464121.workers.dev', // seems to be their only mp4 proxy
@ -99,7 +98,7 @@ export function makeVidifyEmbed(id: string, rank: number = 100) {
type: 'hls',
playlist,
headers: streamHeaders,
flags: [flags.CORS_ALLOWED],
flags: [],
captions: [],
},
],

View file

@ -1,4 +1,3 @@
import { flags } from '@/entrypoint/utils/targets';
import { SourcererOutput, makeSourcerer } from '@/providers/base';
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
@ -65,7 +64,7 @@ export const vidifyScraper = makeSourcerer({
id: 'vidify',
name: 'Vidify',
rank: 124,
flags: [flags.CORS_ALLOWED],
flags: [],
scrapeMovie: comboScraper,
scrapeShow: comboScraper,
});