mirror of
https://github.com/sussy-code/providers.git
synced 2026-01-11 20:10:17 +00:00
parent
6a44843499
commit
b53ad8a399
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext): Pr
|
|||
searchResults.push({ title, year: year ? parseInt(year, 10) : undefined, url });
|
||||
});
|
||||
|
||||
const showLink = searchResults.find((x) => x && compareMedia(ctx.media, x.title, x.year))?.url;
|
||||
let showLink = searchResults.find((x) => x && compareMedia(ctx.media, x.title, x.year))?.url;
|
||||
if (!showLink) throw new NotFoundError('Content not found');
|
||||
|
||||
if (ctx.media.type === 'show') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue