Fixed: (AnimeBytes) Improve season/episode detection

pull/1624/head
Bogdan 1 year ago
parent 9cc60760c3
commit 57e1b6b4a0

@ -355,11 +355,11 @@ namespace NzbDrone.Core.Indexers.Definitions
continue;
}
var releaseInfo = _settings.EnableSonarrCompatibility && categoryName == "Anime" ? "S01" : "";
var editionTitle = torrent.EditionData.EditionTitle;
int? episode = null;
int? season = null;
int? episode = null;
var releaseInfo = string.Empty;
var editionTitle = torrent.EditionData.EditionTitle;
if (editionTitle.IsNotNullOrWhiteSpace())
{
@ -383,11 +383,13 @@ namespace NzbDrone.Core.Indexers.Definitions
}
}
if (_settings.EnableSonarrCompatibility && season == null)
if (_settings.EnableSonarrCompatibility)
{
season = ParseSeasonFromTitles(synonyms);
season ??= ParseSeasonFromTitles(synonyms);
}
season ??= _settings.EnableSonarrCompatibility && categoryName == "Anime" ? 1 : null;
if (season is > 0 || episode is > 0)
{
releaseInfo = string.Empty;

Loading…
Cancel
Save