mirror of
https://github.com/p-stream/providers.git
synced 2026-05-13 15:20:59 +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;
|
const fullSlug = movieEl.fullSlug;
|
||||||
return { name, year, 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');
|
if (!targetMedia?.fullSlug) throw new NotFoundError('No watchable item found');
|
||||||
|
|
||||||
let iframeSourceUrl = `/${targetMedia.fullSlug}/videos`;
|
let iframeSourceUrl = `/${targetMedia.fullSlug}/videos`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue