mirror of
https://github.com/p-stream/providers.git
synced 2026-04-21 10:52:17 +00:00
update soaper???
This commit is contained in:
parent
1ca267e75d
commit
80e8916a66
1 changed files with 10 additions and 2 deletions
|
|
@ -109,7 +109,11 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext): Pr
|
||||||
stream: [
|
stream: [
|
||||||
{
|
{
|
||||||
id: 'primary',
|
id: 'primary',
|
||||||
playlist: await convertPlaylistsToDataUrls(ctx.proxiedFetcher, `${baseUrl}/${streamResJson.val}`),
|
playlist: await convertPlaylistsToDataUrls(ctx.proxiedFetcher, `${baseUrl}/${streamResJson.val}`, {
|
||||||
|
'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',
|
||||||
|
}),
|
||||||
type: 'hls',
|
type: 'hls',
|
||||||
proxyDepth: 2,
|
proxyDepth: 2,
|
||||||
flags: [flags.CORS_ALLOWED],
|
flags: [flags.CORS_ALLOWED],
|
||||||
|
|
@ -119,7 +123,11 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext): Pr
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
id: 'backup',
|
id: 'backup',
|
||||||
playlist: await convertPlaylistsToDataUrls(ctx.proxiedFetcher, `${baseUrl}/${streamResJson.val_bak}`),
|
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',
|
||||||
|
}),
|
||||||
type: 'hls',
|
type: 'hls',
|
||||||
flags: [flags.CORS_ALLOWED],
|
flags: [flags.CORS_ALLOWED],
|
||||||
proxyDepth: 2,
|
proxyDepth: 2,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue