use compareMedia again in zoechip show search

This commit is contained in:
Jonathan Barrow
2023-09-29 14:29:28 -04:00
parent a5de8c8229
commit db79b16a83

View File

@@ -101,7 +101,7 @@ export async function getZoeChipShowID(ctx: ScrapeContext, media: ShowMedia): Pr
const regexResult = html.match(releasedRegex);
if (regexResult) {
const year = Number(regexResult[1]);
if (!Number.isNaN(year) && year === media.releaseYear) {
if (!Number.isNaN(year) && compareMedia(media, result.title, year)) {
return result.id;
}
}