mirror of
https://github.com/p-stream/providers.git
synced 2026-03-11 17:55:36 +00:00
update soaper (disabled)
This commit is contained in:
parent
c30c978c9a
commit
e57b905e43
2 changed files with 8 additions and 11 deletions
|
|
@ -6,7 +6,7 @@ import { Stream } from '@/providers/streams';
|
|||
import { compareMedia } from '@/utils/compare';
|
||||
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||
import { NotFoundError } from '@/utils/errors';
|
||||
import { createM3U8ProxyUrl } from '@/utils/proxy';
|
||||
import { convertPlaylistsToDataUrls } from '@/utils/playlist';
|
||||
|
||||
import { InfoResponse } from './types';
|
||||
import { SourcererOutput, makeSourcerer } from '../../base';
|
||||
|
|
@ -174,6 +174,7 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext): Pr
|
|||
'User-Agent':
|
||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Mobile/15E148 Safari/604.1',
|
||||
'Viewport-Width': '375',
|
||||
Origin: baseUrl,
|
||||
};
|
||||
|
||||
return {
|
||||
|
|
@ -181,7 +182,7 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext): Pr
|
|||
stream: [
|
||||
{
|
||||
id: 'primary',
|
||||
playlist: createM3U8ProxyUrl(`${baseUrl}/${streamResJson.val}`, headers),
|
||||
playlist: await convertPlaylistsToDataUrls(ctx.proxiedFetcher, `${baseUrl}/${streamResJson.val}`, headers),
|
||||
type: 'hls',
|
||||
proxyDepth: 2,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
|
|
@ -191,7 +192,11 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext): Pr
|
|||
? [
|
||||
{
|
||||
id: 'backup',
|
||||
playlist: createM3U8ProxyUrl(`${baseUrl}/${streamResJson.val_bak}`, headers),
|
||||
playlist: await convertPlaylistsToDataUrls(
|
||||
ctx.proxiedFetcher,
|
||||
`${baseUrl}/${streamResJson.val_bak}`,
|
||||
headers,
|
||||
),
|
||||
type: 'hls',
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
proxyDepth: 2,
|
||||
|
|
@ -212,9 +217,3 @@ export const soaperTvScraper = makeSourcerer({
|
|||
scrapeMovie: universalScraper,
|
||||
scrapeShow: universalScraper,
|
||||
});
|
||||
|
||||
// playlist: await convertPlaylistsToDataUrls(ctx.proxiedFetcher, `${baseUrl}/${streamResJson.val_bak}`, {
|
||||
// 'User-Agent':
|
||||
// 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Mobile/15E148 Safari/604.1',
|
||||
// 'Viewport-Width': '375',
|
||||
// }),
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ import { warezcdnembedMp4Scraper } from '@/providers/embeds/warezcdn/mp4';
|
|||
import { embedsuScraper } from '@/providers/sources/embedsu';
|
||||
import { nepuScraper } from '@/providers/sources/nepu';
|
||||
import { pirxcyScraper } from '@/providers/sources/pirxcy';
|
||||
import { soaperTvScraper } from '@/providers/sources/soapertv';
|
||||
import { vidsrcScraper } from '@/providers/sources/vidsrc';
|
||||
import { wecimaScraper } from '@/providers/sources/wecima';
|
||||
import { Stream } from '@/providers/streams';
|
||||
|
|
@ -34,7 +33,6 @@ const SKIP_VALIDATION_CHECK_IDS = [
|
|||
embedsuScraper.id,
|
||||
wecimaScraper.id,
|
||||
...cinemaosHexaEmbeds.map((e) => e.id),
|
||||
soaperTvScraper.id,
|
||||
vidsrcScraper.id,
|
||||
turbovidScraper.id,
|
||||
nepuScraper.id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue