From 4a5e9239995f7ed16b00e13dd7520ce804a8c9da Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 22 Apr 2023 20:37:09 +0300 Subject: [PATCH] Fixed: (AnimeBytes) Parse season only for category Anime --- src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs b/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs index 041579e66..7be329cb0 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs @@ -383,12 +383,13 @@ namespace NzbDrone.Core.Indexers.Definitions } } - if (_settings.EnableSonarrCompatibility) + if (_settings.EnableSonarrCompatibility && categoryName == "Anime") { season ??= ParseSeasonFromTitles(synonyms); - } - season ??= _settings.EnableSonarrCompatibility && categoryName == "Anime" ? 1 : null; + // Default to S01 + season ??= 1; + } if (season is > 0 || episode is > 0) {