Fixed sonarr not finding episode numbers with animebytes (#1329)

* fixed sonarr not finding episode numbers

* animebytes: fixed sonarr compatibility setting description was incorrect
This commit is contained in:
Nodja 2017-05-06 09:45:24 -04:00 committed by kaso17
parent 9d6d5265e2
commit 026fa22a37
2 changed files with 3 additions and 3 deletions

View File

@ -302,9 +302,9 @@ namespace Jackett.Indexers
releaseInfo = releaseInfo.Replace("Season ", "S");
releaseInfo = releaseInfo.Trim();
int test = 0;
if (InsertSeason && int.TryParse(releaseInfo, out test) && releaseInfo.Length==1)
if (InsertSeason && int.TryParse(releaseInfo, out test) && releaseInfo.Length<=3)
{
releaseInfo = "S01E0" + releaseInfo;
releaseInfo = "E0" + releaseInfo;
}
}

View File

@ -18,7 +18,7 @@ namespace Jackett.Models.IndexerConfig.Bespoke
{
IncludeRaw = new BoolItem() { Name = "IncludeRaw", Value = false };
DateWarning = new DisplayItem("This tracker does not supply upload dates so they are based off year of release.") { Name = "DateWarning" };
InsertSeason = new BoolItem() { Name = "Prefix episode number with S01 for Sonarr Compatability", Value = false };
InsertSeason = new BoolItem() { Name = "Prefix episode number with E0 for Sonarr Compatability", Value = false };
}
}
}