mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 17:03:26 +00:00
zoechip - dont pass year when searching shows
This commit is contained in:
@@ -83,8 +83,7 @@ export async function getZoeChipShowID(ctx: ScrapeContext, media: ShowMedia): Pr
|
|||||||
const releasedRegex = /<\/strong><\/span> (\d.*)-\d.*-\d.*/;
|
const releasedRegex = /<\/strong><\/span> (\d.*)-\d.*-\d.*/;
|
||||||
const searchResults = await getZoeChipSearchResults(ctx, media);
|
const searchResults = await getZoeChipSearchResults(ctx, media);
|
||||||
|
|
||||||
// Since we don't have a year here, force them to be the same. Only compare titles
|
const filtered = searchResults.filter((v) => v && v.type === 'TV' && compareMedia(media, v.title));
|
||||||
const filtered = searchResults.filter((v) => v && v.type === 'TV' && compareMedia(media, v.title, media.releaseYear));
|
|
||||||
|
|
||||||
for (const result of filtered) {
|
for (const result of filtered) {
|
||||||
// This gets filtered above but the linter Gods don't think so
|
// This gets filtered above but the linter Gods don't think so
|
||||||
|
Reference in New Issue
Block a user