mirror of
https://github.com/sussy-code/providers.git
synced 2026-08-17 04:35:57 +00:00
Update vidsrcsu.ts
This commit is contained in:
parent
dda16a4d53
commit
61192a62b1
1 changed files with 3 additions and 1 deletions
|
|
@ -4,10 +4,12 @@ import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
|||
import { NotFoundError } from '@/utils/errors';
|
||||
|
||||
async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promise<SourcererOutput> {
|
||||
const embedPage = await ctx.fetcher(
|
||||
const embedPage = await ctx.proxiedFetcher(
|
||||
`https://vidsrc.su/embed/${ctx.media.type === 'movie' ? `movie/${ctx.media.tmdbId}` : `tv/${ctx.media.tmdbId}/${ctx.media.season.number}/${ctx.media.episode.number}`}`,
|
||||
);
|
||||
|
||||
ctx.progress(30);
|
||||
|
||||
const decodedPeterMatch = embedPage.match(/decodeURIComponent\('([^']+)'\)/);
|
||||
const decodedPeterUrl = decodedPeterMatch ? decodeURIComponent(decodedPeterMatch[1]) : null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue