mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 14:53:24 +00:00
use compareMedia again in zoechip show search
This commit is contained in:
@@ -101,7 +101,7 @@ export async function getZoeChipShowID(ctx: ScrapeContext, media: ShowMedia): Pr
|
|||||||
const regexResult = html.match(releasedRegex);
|
const regexResult = html.match(releasedRegex);
|
||||||
if (regexResult) {
|
if (regexResult) {
|
||||||
const year = Number(regexResult[1]);
|
const year = Number(regexResult[1]);
|
||||||
if (!Number.isNaN(year) && year === media.releaseYear) {
|
if (!Number.isNaN(year) && compareMedia(media, result.title, year)) {
|
||||||
return result.id;
|
return result.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user