diff --git a/src/providers/sources/nepu/index.ts b/src/providers/sources/nepu/index.ts index 0cc65be..886963c 100644 --- a/src/providers/sources/nepu/index.ts +++ b/src/providers/sources/nepu/index.ts @@ -24,7 +24,7 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) => const show = searchResult.data.find((item) => { if (!item) return false; if (ctx.media.type === 'movie' && item.type !== 'Movie') return false; - if (ctx.media.type === 'show' && item.type !== 'Serie') return false; + if (ctx.media.type === 'show' && item.type !== 'Show') return false; const [, title, year] = item.name.match(/^(.*?)\s*(?:\(?\s*(\d{4})(?:\s*-\s*\d{0,4})?\s*\)?)?\s*$/) || []; return compareMedia(ctx.media, title, Number(year)); diff --git a/src/providers/sources/nepu/types.ts b/src/providers/sources/nepu/types.ts index 200995a..4c0c1ca 100644 --- a/src/providers/sources/nepu/types.ts +++ b/src/providers/sources/nepu/types.ts @@ -3,6 +3,6 @@ export type SearchResults = { id: number; name: string; url: string; - type: 'Movie' | 'Serie'; + type: 'Movie' | 'Show'; }[]; };