Fix endpoint parsing for nsbx

This commit is contained in:
TPN 2024-07-06 20:13:12 +01:00 committed by GitHub
parent 3341c6d75c
commit 3001ad69ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ function embed(provider: { id: string; rank: number }) {
rank: provider.rank,
disabled: false,
async scrape(ctx) {
const [query, baseUrl] = ctx.url.split('.');
const [query, baseUrl] = ctx.url.split('|');
const search = await ctx.fetcher.full('/search', {
query: {

View File

@ -24,7 +24,7 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
const embeds = res.providers.map((provider: string) => {
return {
embedId: provider,
url: `${JSON.stringify(query)}.${res.endpoint}`,
url: `${JSON.stringify(query)}|${res.endpoint}`,
};
});