Skip to content

Commit

Permalink
Probably Fix Manually Linking
Browse files Browse the repository at this point in the history
  • Loading branch information
da3dsoul committed Mar 13, 2024
1 parent a265719 commit 54c666a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Shoko.Server/Scheduling/Jobs/Shoko/ManualLinkJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ public override Dictionary<string, object> 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()
Expand Down

0 comments on commit 54c666a

Please sign in to comment.