2011-04-10 04:44:01 +02:00
|
|
|
|
using System.ComponentModel;
|
2011-03-03 02:16:48 +01:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2011-02-26 05:07:22 +01:00
|
|
|
|
using System.Web.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Models
|
|
|
|
|
{
|
2011-11-29 02:11:55 +01:00
|
|
|
|
public class EpisodeNamingModel
|
2011-02-26 05:07:22 +01:00
|
|
|
|
{
|
2011-05-19 01:10:25 +02:00
|
|
|
|
[DisplayName("Series Name")]
|
|
|
|
|
[Description("Should filenames contain the series name when renamed?")]
|
|
|
|
|
public bool SeriesName { get; set; }
|
2011-03-03 02:16:48 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("Episode Name")]
|
2011-05-19 01:10:25 +02:00
|
|
|
|
[Description("Should filenames contain the episode name when renamed?")]
|
2011-02-26 05:07:22 +01:00
|
|
|
|
public bool EpisodeName { get; set; }
|
2011-03-03 02:16:48 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("Replace Spaces")]
|
2011-05-19 01:10:25 +02:00
|
|
|
|
[Description("Do you want to replace spaces in the filename with periods?")]
|
2011-02-26 05:07:22 +01:00
|
|
|
|
public bool ReplaceSpaces { get; set; }
|
2011-03-03 02:16:48 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("Append Quality")]
|
2011-05-19 01:10:25 +02:00
|
|
|
|
[Description("Should filenames have the quality appended to the end?")]
|
2011-02-26 05:07:22 +01:00
|
|
|
|
public bool AppendQuality { get; set; }
|
2011-03-03 02:16:48 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("Use Season Folders")]
|
2012-03-19 20:22:20 +01:00
|
|
|
|
[Description("Should files be stored in season folders by default? (Applied only when a series is added)")]
|
2011-02-26 05:07:22 +01:00
|
|
|
|
public bool SeasonFolders { get; set; }
|
2011-03-03 02:16:48 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("Season Folder Format")]
|
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2011-05-19 01:10:25 +02:00
|
|
|
|
[Description("How should season folders be named? (Use %0s to pad to two digits)")]
|
2011-02-26 05:07:22 +01:00
|
|
|
|
public string SeasonFolderFormat { get; set; }
|
2011-03-03 02:16:48 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("Separator Style")]
|
2011-05-19 01:10:25 +02:00
|
|
|
|
[Description("How should NzbDrone separate sections of the filename?")]
|
2011-02-26 05:07:22 +01:00
|
|
|
|
public int SeparatorStyle { get; set; }
|
2011-03-03 02:16:48 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("Numbering Style")]
|
2011-05-19 01:10:25 +02:00
|
|
|
|
[Description("What numbering style do you want?")]
|
2011-02-26 05:07:22 +01:00
|
|
|
|
public int NumberStyle { get; set; }
|
2011-03-03 02:16:48 +01:00
|
|
|
|
|
|
|
|
|
[DisplayName("Multi-Episode Style")]
|
2011-05-19 01:10:25 +02:00
|
|
|
|
[Description("How will multi-episode files be named?")]
|
2011-02-26 05:07:22 +01:00
|
|
|
|
public int MultiEpisodeStyle { get; set; }
|
2011-03-03 02:16:48 +01:00
|
|
|
|
|
2011-02-26 05:07:22 +01:00
|
|
|
|
public SelectList SeparatorStyles { get; set; }
|
|
|
|
|
public SelectList NumberStyles { get; set; }
|
|
|
|
|
public SelectList MultiEpisodeStyles { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|