mirror of
https://github.com/sussy-code/providers.git
synced 2026-03-21 02:08:23 +00:00
check year
This commit is contained in:
parent
68a70b1177
commit
718eb97c06
1 changed files with 1 additions and 1 deletions
|
|
@ -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`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue