mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-04 08:50:20 +00:00
Fix remotestream and linting error
This commit is contained in:
parent
7a5cbb3428
commit
f2073e89d9
2 changed files with 4 additions and 5 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { makeEmbed } from '@/providers/base';
|
||||
import { Caption, getCaptionTypeFromUrl, labelToLanguageCode } from '@/providers/captions';
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ export const remotestreamScraper = makeSourcerer({
|
|||
const playlistLink = `${remotestreamBase}/Shows/${ctx.media.tmdbId}/${seasonNumber}/${episodeNumber}/${episodeNumber}.m3u8`;
|
||||
|
||||
ctx.progress(30);
|
||||
const streamRes = await ctx.fetcher.full(playlistLink, {
|
||||
method: 'HEAD',
|
||||
const streamRes = await ctx.proxiedFetcher.full(playlistLink, {
|
||||
method: 'GET',
|
||||
readHeaders: ['content-type'],
|
||||
headers: {
|
||||
Referer: referer,
|
||||
|
|
@ -51,8 +51,8 @@ export const remotestreamScraper = makeSourcerer({
|
|||
const playlistLink = `${remotestreamBase}/Movies/${ctx.media.tmdbId}/${ctx.media.tmdbId}.m3u8`;
|
||||
|
||||
ctx.progress(30);
|
||||
const streamRes = await ctx.fetcher.full(playlistLink, {
|
||||
method: 'HEAD',
|
||||
const streamRes = await ctx.proxiedFetcher.full(playlistLink, {
|
||||
method: 'GET',
|
||||
readHeaders: ['content-type'],
|
||||
headers: {
|
||||
Referer: referer,
|
||||
|
|
|
|||
Loading…
Reference in a new issue