😭
Some checks failed
Testing / Testing (push) Has been cancelled

This commit is contained in:
TPN 2025-01-30 22:48:10 +05:30 committed by GitHub
parent 6a44843499
commit b53ad8a399
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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') {