mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
ReSharper code cleanup
This commit is contained in:
parent
8cade435d1
commit
e896af5cd0
138 changed files with 2368 additions and 2218 deletions
|
@ -7,25 +7,70 @@ namespace NzbDrone.Core.Helpers
|
|||
public static class EpisodeSortingHelper
|
||||
{
|
||||
private static readonly List<EpisodeSortingType> SeparatorStyles = new List<EpisodeSortingType>
|
||||
{
|
||||
new EpisodeSortingType {Id = 0, Name = "Dash", Pattern = " - "},
|
||||
new EpisodeSortingType {Id = 1, Name = "Space", Pattern = " "}
|
||||
};
|
||||
{
|
||||
new EpisodeSortingType
|
||||
{
|
||||
Id = 0,
|
||||
Name = "Dash",
|
||||
Pattern = " - "
|
||||
},
|
||||
new EpisodeSortingType
|
||||
{
|
||||
Id = 1,
|
||||
Name = "Space",
|
||||
Pattern = " "
|
||||
}
|
||||
};
|
||||
|
||||
private static readonly List<EpisodeSortingType> NumberStyles = new List<EpisodeSortingType>
|
||||
{
|
||||
new EpisodeSortingType { Id = 0, Name = "1x05", Pattern = "%sx%0e"},
|
||||
new EpisodeSortingType { Id = 1, Name = "01x05", Pattern = "%0sx%0e"},
|
||||
new EpisodeSortingType { Id = 2, Name = "S01E05", Pattern = "S%0sE%0e"},
|
||||
new EpisodeSortingType { Id = 3, Name = "s01e05", Pattern = "s%0se%0e"}
|
||||
};
|
||||
{
|
||||
new EpisodeSortingType
|
||||
{
|
||||
Id = 0,
|
||||
Name = "1x05",
|
||||
Pattern = "%sx%0e"
|
||||
},
|
||||
new EpisodeSortingType
|
||||
{
|
||||
Id = 1,
|
||||
Name = "01x05",
|
||||
Pattern = "%0sx%0e"
|
||||
},
|
||||
new EpisodeSortingType
|
||||
{
|
||||
Id = 2,
|
||||
Name = "S01E05",
|
||||
Pattern = "S%0sE%0e"
|
||||
},
|
||||
new EpisodeSortingType
|
||||
{
|
||||
Id = 3,
|
||||
Name = "s01e05",
|
||||
Pattern = "s%0se%0e"
|
||||
}
|
||||
};
|
||||
|
||||
private static readonly List<EpisodeSortingType> MultiEpisodeStyles = new List<EpisodeSortingType>
|
||||
{
|
||||
new EpisodeSortingType { Id = 0, Name = "Extend", Pattern = "" },
|
||||
new EpisodeSortingType { Id = 1, Name = "Duplicate", Pattern = "" },
|
||||
new EpisodeSortingType { Id = 2, Name = "Repeat", Pattern = "" }
|
||||
};
|
||||
{
|
||||
new EpisodeSortingType
|
||||
{
|
||||
Id = 0,
|
||||
Name = "Extend",
|
||||
Pattern = ""
|
||||
},
|
||||
new EpisodeSortingType
|
||||
{
|
||||
Id = 1,
|
||||
Name = "Duplicate",
|
||||
Pattern = ""
|
||||
},
|
||||
new EpisodeSortingType
|
||||
{
|
||||
Id = 2,
|
||||
Name = "Repeat",
|
||||
Pattern = ""
|
||||
}
|
||||
};
|
||||
|
||||
public static List<EpisodeSortingType> GetSeparatorStyles()
|
||||
{
|
||||
|
@ -72,4 +117,4 @@ namespace NzbDrone.Core.Helpers
|
|||
return MultiEpisodeStyles.Single(s => s.Name == name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue