This commit is contained in:
kaso17 2017-05-06 19:39:07 +02:00
commit c24368f8f9
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 };
}
}
}