Update vidbinge and ranks
This commit is contained in:
parent
a2f0ea0f6f
commit
6748b3c2e4
5236
pnpm-lock.yaml
5236
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -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,
|
||||
},
|
||||
];
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue