mirror of
https://github.com/sussy-code/providers.git
synced 2026-08-12 01:51:23 +00:00
fix slidemovies
their proxy is shit just remove it
This commit is contained in:
parent
659733a9f7
commit
484862adfc
1 changed files with 6 additions and 3 deletions
|
|
@ -13,10 +13,9 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
|||
? `${baseUrl}/movie/${ctx.media.tmdbId}`
|
||||
: `${baseUrl}/tv/${ctx.media.tmdbId}/${ctx.media.season.number}/-${ctx.media.episode.number}`;
|
||||
|
||||
ctx.progress(60);
|
||||
|
||||
const watchPage = await ctx.proxiedFetcher(watchPageUrl);
|
||||
const $ = load(watchPage);
|
||||
ctx.progress(50);
|
||||
|
||||
const proxiedStreamUrl = $('media-player').attr('src');
|
||||
|
||||
|
|
@ -24,6 +23,10 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
|||
throw new NotFoundError('Stream URL not found');
|
||||
}
|
||||
|
||||
const proxyUrl = new URL(proxiedStreamUrl);
|
||||
const encodedUrl = proxyUrl.searchParams.get('url') || '';
|
||||
const playlist = decodeURIComponent(encodedUrl);
|
||||
|
||||
const isoLanguageMap: Record<string, string> = {
|
||||
ng: 'en',
|
||||
re: 'fr',
|
||||
|
|
@ -56,7 +59,7 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
|||
id: 'primary',
|
||||
type: 'hls',
|
||||
flags: [],
|
||||
playlist: proxiedStreamUrl,
|
||||
playlist,
|
||||
captions,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue