Merge pull request #383 from movie-web/fix-ep

Fix wrong targeted episode on GoMovies
This commit is contained in:
William Oldham 2023-07-13 18:32:32 +01:00 committed by GitHub
commit 65c7a461d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ registerProvider({
)?.number;
const targetEpisode = episodesData.find((ep) =>
ep.number ? +ep.number : ep.number === episodeNumber
ep.number ? +ep.number === episodeNumber : false
);
if (!targetEpisode?.dataId) throw new Error("Episode not found");