|
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Organizer
|
|
|
|
{
|
|
|
|
public class NamingConfig : ModelBase
|
|
|
|
{
|
|
|
|
public static NamingConfig Default => new NamingConfig
|
|
|
|
{
|
|
|
|
RenameEpisodes = false,
|
|
|
|
ReplaceIllegalCharacters = true,
|
|
|
|
ColonReplacementFormat = 0,
|
|
|
|
MultiEpisodeStyle = 0,
|
|
|
|
MovieFolderFormat = "{Movie Title} ({Release Year})",
|
|
|
|
StandardMovieFormat = "{Movie Title} ({Release Year}) {Quality Full}",
|
|
|
|
};
|
|
|
|
|
|
|
|
public bool RenameEpisodes { get; set; }
|
|
|
|
public bool ReplaceIllegalCharacters { get; set; }
|
|
|
|
public ColonReplacementFormat ColonReplacementFormat { get; set; }
|
|
|
|
public int MultiEpisodeStyle { get; set; }
|
|
|
|
public string StandardMovieFormat { get; set; }
|
|
|
|
public string MovieFolderFormat { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public enum ColonReplacementFormat
|
|
|
|
{
|
|
|
|
Delete = 0,
|
|
|
|
Dash = 1,
|
|
|
|
SpaceDash = 2,
|
|
|
|
SpaceDashSpace = 3
|
|
|
|
}
|
|
|
|
|
|
|
|
static class ColonReplacementFormatMethods
|
|
|
|
{
|
|
|
|
|
|
|
|
public static String GetFormatString(this ColonReplacementFormat format)
|
|
|
|
{
|
|
|
|
switch (format)
|
|
|
|
{
|
|
|
|
case ColonReplacementFormat.Delete:
|
|
|
|
return "";
|
|
|
|
case ColonReplacementFormat.Dash:
|
|
|
|
return "-";
|
|
|
|
case ColonReplacementFormat.SpaceDash:
|
|
|
|
return " -";
|
|
|
|
case ColonReplacementFormat.SpaceDashSpace:
|
|
|
|
return " - ";
|
|
|
|
default:
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|