Skip to content

Commit

Permalink
Fix relation depth comparison in GetAniDBAnimeJob
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan committed Nov 5, 2024
1 parent a2dabcd commit d66b282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/Scheduling/Jobs/AniDB/GetAniDBAnimeJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ private async Task ProcessRelations(ResponseGetAnime response)
{
if (!DownloadRelations) return;
if (_settings.AniDb.MaxRelationDepth <= 0) return;
if (RelDepth > _settings.AniDb.MaxRelationDepth) return;
if (RelDepth >= _settings.AniDb.MaxRelationDepth) return;
if (!_settings.AutoGroupSeries && !_settings.AniDb.DownloadRelatedAnime) return;
var scheduler = await _schedulerFactory.GetScheduler().ConfigureAwait(false);

Expand Down

0 comments on commit d66b282

Please sign in to comment.