update clarity and some errors

This commit is contained in:
Pas 2025-12-09 22:58:11 -07:00
parent 990d985f3a
commit aa3875504d

View file

@ -1,3 +1,4 @@
import { flags } from '@/entrypoint/utils/targets';
import { SourcererOutput, makeSourcerer } from '@/providers/base'; import { SourcererOutput, makeSourcerer } from '@/providers/base';
import { MovieScrapeContext } from '@/utils/context'; import { MovieScrapeContext } from '@/utils/context';
import { NotFoundError } from '@/utils/errors'; import { NotFoundError } from '@/utils/errors';
@ -97,7 +98,7 @@ async function scrapeMovie(ctx: MovieScrapeContext): Promise<SourcererOutput> {
}); });
ctx.progress(80); ctx.progress(80);
if (!playerResponse || playerResponse === '404') throw new NotFoundError('Source is inaccessible'); if (!playerResponse || playerResponse === '404') throw new NotFoundError('Player 404: Source is inaccessible');
const playlistUrl = isVidmoxy ? extractVidmoxy(playerResponse) : extractAtom(playerResponse); const playlistUrl = isVidmoxy ? extractVidmoxy(playerResponse) : extractAtom(playerResponse);
@ -109,7 +110,7 @@ async function scrapeMovie(ctx: MovieScrapeContext): Promise<SourcererOutput> {
type: 'hls', type: 'hls',
playlist: createM3U8ProxyUrl(playlistUrl, ctx.features, headers), playlist: createM3U8ProxyUrl(playlistUrl, ctx.features, headers),
headers, headers,
flags: [], flags: [flags.CORS_ALLOWED],
captions: [], captions: [],
}, },
], ],
@ -119,8 +120,8 @@ async function scrapeMovie(ctx: MovieScrapeContext): Promise<SourcererOutput> {
export const fullhdfilmizleScraper = makeSourcerer({ export const fullhdfilmizleScraper = makeSourcerer({
id: 'fullhdfilmizle', id: 'fullhdfilmizle',
name: 'FullHDFilmizle (Turkish)', name: 'FullHDFilmizle (Turkish)',
rank: 2, rank: 3,
disabled: false, disabled: false,
flags: [], flags: [flags.CORS_ALLOWED],
scrapeMovie, scrapeMovie,
}); });