mirror of
https://github.com/sussy-code/providers.git
synced 2026-05-18 07:31:45 +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 });
|
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 (!showLink) throw new NotFoundError('Content not found');
|
||||||
|
|
||||||
if (ctx.media.type === 'show') {
|
if (ctx.media.type === 'show') {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue