Fix endpoint parsing for nsbx
This commit is contained in:
parent
3341c6d75c
commit
3001ad69ab
|
@ -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: {
|
||||
|
|
|
@ -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}`,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue