mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 10:33:25 +00:00
Update search.ts
This commit is contained in:
@@ -29,7 +29,11 @@ export async function getFlixhqId(ctx: ScrapeContext, media: MovieMedia | ShowMe
|
||||
};
|
||||
});
|
||||
|
||||
const matchingItem = items.find((v) => v && (media.type === 'movie' ? compareMedia(media, v.title, v.year) : compareTitle(media.title, v.title) && media.season.number === v.seasons || media.season.number < v.seasons || media.season.number < v.seasons + 1));
|
||||
const matchingItem = items.find(
|
||||
(v) => v &&
|
||||
(media.type === 'movie' ? compareMedia(media, v.title, v.year) :
|
||||
compareTitle(media.title, v.title) && media.season.number < v.seasons + 1)
|
||||
);
|
||||
|
||||
if (!matchingItem) return null;
|
||||
return matchingItem.id;
|
||||
|
Reference in New Issue
Block a user