From 718eb97c06dbeaf5ef0c900d0c6cbb3e3f48e76f Mon Sep 17 00:00:00 2001 From: TPN Date: Fri, 5 Apr 2024 23:28:49 +0530 Subject: [PATCH] check year --- src/providers/sources/ridomovies/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/sources/ridomovies/index.ts b/src/providers/sources/ridomovies/index.ts index 69fb745..638ea13 100644 --- a/src/providers/sources/ridomovies/index.ts +++ b/src/providers/sources/ridomovies/index.ts @@ -25,7 +25,7 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) => const fullSlug = movieEl.fullSlug; return { name, year, fullSlug }; }); - const targetMedia = mediaData.find((m) => m.name === ctx.media.title); + const targetMedia = mediaData.find((m) => m.name === ctx.media.title && m.year === ctx.media.releaseYear.toString()); if (!targetMedia?.fullSlug) throw new NotFoundError('No watchable item found'); let iframeSourceUrl = `/${targetMedia.fullSlug}/videos`;