diff --git a/Shoko.Server/Scheduling/Jobs/Shoko/ManualLinkJob.cs b/Shoko.Server/Scheduling/Jobs/Shoko/ManualLinkJob.cs index f5b5156c5..711a75ac4 100644 --- a/Shoko.Server/Scheduling/Jobs/Shoko/ManualLinkJob.cs +++ b/Shoko.Server/Scheduling/Jobs/Shoko/ManualLinkJob.cs @@ -52,9 +52,10 @@ public override Dictionary Details public override void PostInit() { _vlocal = RepoFactory.VideoLocal.GetByID(VideoLocalID); - _episode = RepoFactory.AnimeEpisode.GetByAniDBEpisodeID(EpisodeID); + _episode = RepoFactory.AnimeEpisode.GetByID(EpisodeID); if (_vlocal == null) throw new JobExecutionException($"VideoLocal not Found: {VideoLocalID}"); if (_episode == null) throw new JobExecutionException($"Episode not Found: {EpisodeID}"); + if (_episode.GetAnimeSeries() == null) throw new JobExecutionException($"Series not Found: {_episode.AnimeSeriesID}"); } public override async Task Process()