rivestream baybee

This commit is contained in:
lew 2025-08-09 15:22:16 +01:00 committed by GitHub
parent 2bec030d20
commit d03c8c8d31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,131 @@
import { flags } from '@/entrypoint/utils/targets';
import { SourcererOutput, makeSourcerer } from '@/providers/base';
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promise<SourcererOutput> {
const query = {
type: ctx.media.type,
title: ctx.media.title,
tmdbId: ctx.media.tmdbId,
imdbId: ctx.media.imdbId,
...(ctx.media.type === 'show' && {
season: ctx.media.season.number,
episode: ctx.media.episode.number,
}),
releaseYear: ctx.media.releaseYear,
};
return {
embeds: [
{
embedId: 'rivestream-flowcast',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-primevids',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-humpy',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-loki',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-asiacloud',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-shadow',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-hindicast',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-animez',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-sapphire',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-aqua',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-guard',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-curve',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-hq',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-ninja',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-alpha',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-kaze',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-zenesis',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-zenith',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-ghost',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-kinoecho',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-ee3',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-volt',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-putafilme',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-ophim',
url: JSON.stringify(query),
},
{
embedId: 'rivestream-kage',
url: JSON.stringify(query),
},
],
};
}
export const rivestreamScraper = makeSourcerer({
id: 'rivestream',
name: 'Rivestream',
rank: 124, // change this
flags: [flags.CORS_ALLOWED],
scrapeMovie: comboScraper,
scrapeShow: comboScraper,
});