mirror of https://github.com/Jackett/Jackett
AnimeBytes: fix Sonarr compatibility for single digit episodes (#5759)
This commit is contained in:
parent
87351216cc
commit
a699245564
|
@ -22,7 +22,7 @@ namespace Jackett.Common.Indexers
|
|||
private string ScrapeUrl { get { return SiteLink + "scrape.php"; } }
|
||||
private string TorrentsUrl { get { return SiteLink + "torrents.php"; } }
|
||||
public bool AllowRaws { get { return configData.IncludeRaw.Value; } }
|
||||
public bool InsertSeason { get { return configData.InsertSeason != null && configData.InsertSeason.Value; } }
|
||||
public bool PadEpisode { get { return configData.PadEpisode != null && configData.PadEpisode.Value; } }
|
||||
public bool AddSynonyms { get { return configData.AddSynonyms.Value; } }
|
||||
public bool FilterSeasonEpisode { get { return configData.FilterSeasonEpisode.Value; } }
|
||||
|
||||
|
@ -237,10 +237,9 @@ namespace Jackett.Common.Indexers
|
|||
releaseInfo = releaseInfo.Replace("Season ", "S");
|
||||
releaseInfo = releaseInfo.Trim();
|
||||
|
||||
int test = 0;
|
||||
if (InsertSeason && int.TryParse(releaseInfo, out test) && releaseInfo.Length <= 3)
|
||||
if (PadEpisode && int.TryParse(releaseInfo, out int test) && releaseInfo.Length == 1)
|
||||
{
|
||||
releaseInfo = "E0" + releaseInfo;
|
||||
releaseInfo = "0" + releaseInfo;
|
||||
}
|
||||
|
||||
if (FilterSeasonEpisode)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{
|
||||
public BoolItem IncludeRaw { get; private set; }
|
||||
//public DisplayItem DateWarning { get; private set; }
|
||||
public BoolItem InsertSeason { get; private set; }
|
||||
public BoolItem PadEpisode { get; private set; }
|
||||
public BoolItem AddSynonyms { get; private set; }
|
||||
public BoolItem FilterSeasonEpisode { get; private set; }
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
{
|
||||
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 E0 for Sonarr Compatability", Value = false };
|
||||
PadEpisode = new BoolItem() { Name = "Pad episode number for Sonarr compatability", Value = false };
|
||||
AddSynonyms = new BoolItem() { Name = "Add releases for each synonym title", Value = true };
|
||||
FilterSeasonEpisode = new BoolItem() { Name = "Filter results by season/episode", Value = false };
|
||||
Instructions = new DisplayItem(instructionMessageOptional) { Name = "" };
|
||||
|
|
Loading…
Reference in New Issue