mirror of
https://github.com/p-stream/providers.git
synced 2026-01-11 20:10:33 +00:00
make rive ext only
This commit is contained in:
parent
9feb9c943b
commit
f41ecb6a61
2 changed files with 6 additions and 7 deletions
|
|
@ -1,7 +1,5 @@
|
|||
/* eslint-disable no-console */
|
||||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { NotFoundError } from '@/utils/errors';
|
||||
import { createM3U8ProxyUrl } from '@/utils/proxy';
|
||||
|
||||
import { EmbedOutput, makeEmbed } from '../base';
|
||||
import { labelToLanguageCode } from '../captions';
|
||||
|
|
@ -105,7 +103,8 @@ export function makeRivestreamEmbed(id: string, rank: number = 100) {
|
|||
id: 'primary',
|
||||
type: 'file',
|
||||
qualities,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
headers,
|
||||
flags: [],
|
||||
captions,
|
||||
},
|
||||
],
|
||||
|
|
@ -118,8 +117,9 @@ export function makeRivestreamEmbed(id: string, rank: number = 100) {
|
|||
{
|
||||
id: 'primary',
|
||||
type: 'hls',
|
||||
playlist: createM3U8ProxyUrl(firstSource.url, headers),
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
playlist: firstSource.url,
|
||||
headers,
|
||||
flags: [],
|
||||
captions,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { SourcererOutput, makeSourcerer } from '@/providers/base';
|
||||
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||
|
||||
|
|
@ -122,7 +121,7 @@ export const rivestreamScraper = makeSourcerer({
|
|||
name: 'Rivestream',
|
||||
rank: 134,
|
||||
disabled: false,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
flags: [],
|
||||
scrapeMovie: comboScraper,
|
||||
scrapeShow: comboScraper,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue