From d66b2821142a75d4afd586b0a4e496c26aa20a40 Mon Sep 17 00:00:00 2001 From: Harshith Mohan <26010946+harshithmohan@users.noreply.github.com> Date: Wed, 6 Nov 2024 00:58:27 +0530 Subject: [PATCH] Fix relation depth comparison in GetAniDBAnimeJob --- Shoko.Server/Scheduling/Jobs/AniDB/GetAniDBAnimeJob.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shoko.Server/Scheduling/Jobs/AniDB/GetAniDBAnimeJob.cs b/Shoko.Server/Scheduling/Jobs/AniDB/GetAniDBAnimeJob.cs index 7999d4c04..1e9c5a313 100644 --- a/Shoko.Server/Scheduling/Jobs/AniDB/GetAniDBAnimeJob.cs +++ b/Shoko.Server/Scheduling/Jobs/AniDB/GetAniDBAnimeJob.cs @@ -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);