mirror of
https://github.com/p-stream/providers.git
synced 2026-04-21 12:52:16 +00:00
use compareMedia again in zoechip show search
This commit is contained in:
parent
a5de8c8229
commit
db79b16a83
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue