mirror of
https://github.com/p-stream/providers.git
synced 2026-04-21 16:32:18 +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 */
|
/* eslint-disable no-console */
|
||||||
import { flags } from '@/entrypoint/utils/targets';
|
|
||||||
import { NotFoundError } from '@/utils/errors';
|
import { NotFoundError } from '@/utils/errors';
|
||||||
import { createM3U8ProxyUrl } from '@/utils/proxy';
|
|
||||||
|
|
||||||
import { EmbedOutput, makeEmbed } from '../base';
|
import { EmbedOutput, makeEmbed } from '../base';
|
||||||
import { labelToLanguageCode } from '../captions';
|
import { labelToLanguageCode } from '../captions';
|
||||||
|
|
@ -105,7 +103,8 @@ export function makeRivestreamEmbed(id: string, rank: number = 100) {
|
||||||
id: 'primary',
|
id: 'primary',
|
||||||
type: 'file',
|
type: 'file',
|
||||||
qualities,
|
qualities,
|
||||||
flags: [flags.CORS_ALLOWED],
|
headers,
|
||||||
|
flags: [],
|
||||||
captions,
|
captions,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
@ -118,8 +117,9 @@ export function makeRivestreamEmbed(id: string, rank: number = 100) {
|
||||||
{
|
{
|
||||||
id: 'primary',
|
id: 'primary',
|
||||||
type: 'hls',
|
type: 'hls',
|
||||||
playlist: createM3U8ProxyUrl(firstSource.url, headers),
|
playlist: firstSource.url,
|
||||||
flags: [flags.CORS_ALLOWED],
|
headers,
|
||||||
|
flags: [],
|
||||||
captions,
|
captions,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { flags } from '@/entrypoint/utils/targets';
|
|
||||||
import { SourcererOutput, makeSourcerer } from '@/providers/base';
|
import { SourcererOutput, makeSourcerer } from '@/providers/base';
|
||||||
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||||
|
|
||||||
|
|
@ -122,7 +121,7 @@ export const rivestreamScraper = makeSourcerer({
|
||||||
name: 'Rivestream',
|
name: 'Rivestream',
|
||||||
rank: 134,
|
rank: 134,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
flags: [flags.CORS_ALLOWED],
|
flags: [],
|
||||||
scrapeMovie: comboScraper,
|
scrapeMovie: comboScraper,
|
||||||
scrapeShow: comboScraper,
|
scrapeShow: comboScraper,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue