mirror of
https://github.com/p-stream/providers.git
synced 2026-01-11 20:10:33 +00:00
update clarity and some errors
This commit is contained in:
parent
990d985f3a
commit
aa3875504d
1 changed files with 5 additions and 4 deletions
|
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue