mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-25 14:20:49 +02:00
Fixed: (AnimeBytes) Improve season/episode detection
This commit is contained in:
parent
9cc60760c3
commit
57e1b6b4a0
1 changed files with 8 additions and 6 deletions
|
|
@ -355,11 +355,11 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
|||
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 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
|||
}
|
||||
}
|
||||
|
||||
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…
Reference in a new issue