Update vidbinge and ranks

This commit is contained in:
TPN 2024-07-14 06:06:40 +00:00
parent a2f0ea0f6f
commit 6748b3c2e4
4 changed files with 2882 additions and 2375 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,12 +6,12 @@ import { baseUrl } from '../sources/whvx';
const providers = [
{
id: 'nova',
name: 'VidBinge Nova',
name: 'Nova',
rank: 701,
},
{
id: 'astra',
name: 'VidBinge Astra',
name: 'Astra',
rank: 700,
},
];

View File

@ -30,18 +30,6 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
};
});
try {
const whvx =
ctx.media.type === 'movie' && whvxScraper.scrapeMovie
? await whvxScraper.scrapeMovie(ctx as MovieScrapeContext)
: whvxScraper.scrapeShow
? await whvxScraper.scrapeShow(ctx as ShowScrapeContext)
: null;
if (whvx && whvx.embeds.length) embeds = [...embeds, ...whvx.embeds];
} catch {
//
}
return {
embeds,
};

View File

@ -36,10 +36,9 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
export const whvxScraper = makeSourcerer({
id: 'whvx',
name: 'WHVX',
rank: 149,
name: 'VidBinge',
rank: 128,
flags: [flags.CORS_ALLOWED],
disabled: true,
scrapeMovie: comboScraper,
scrapeShow: comboScraper,
});