mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-31 16:02:29 +01:00
e7cbc4cbcf
From shypike:This is the (kind of weird) priority table: TOP_PRIORITY = 2 HIGH_PRIORITY = 1 NORMAL_PRIORITY = 0 LOW_PRIORITY = -1 DEFAULT_PRIORITY = -100 PAUSED_PRIORITY = -2 -100 won't do a thing, since it means: whatever is default.
101 lines
2.3 KiB
C#
101 lines
2.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using NzbDrone.Core.Model;
|
|
|
|
namespace NzbDrone.Web.Models
|
|
{
|
|
public class DownloadSettingsModel
|
|
{
|
|
[Required]
|
|
[Range(15, 120, ErrorMessage = "Must be between 15 and 120 minutes")]
|
|
[DataType(DataType.Text)]
|
|
[DisplayName("Sync Frequency")]
|
|
public int SyncFrequency
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[DisplayName("Download Propers")]
|
|
public bool DownloadPropers
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Required (ErrorMessage = "Please enter a valid number")]
|
|
[DataType(DataType.Text)]
|
|
[DisplayName("Retention")]
|
|
public int Retention
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Required (ErrorMessage = "Please enter a valid host")]
|
|
[DataType(DataType.Text)]
|
|
[DisplayName("SABnzbd Host")]
|
|
public String SabHost
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Required(ErrorMessage = "Please enter a valid port")]
|
|
[DataType(DataType.Text)]
|
|
[DisplayName("SABnzbd Port")]
|
|
public int SabPort
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[DataType(DataType.Text)]
|
|
[DisplayName("SABnzbd API Key")]
|
|
public String SabApiKey
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[DataType(DataType.Text)]
|
|
[DisplayName("SABnzbd Username")]
|
|
public String SabUsername
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[DataType(DataType.Text)]
|
|
[DisplayName("SABnzbd Password")]
|
|
public String SabPassword
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[DataType(DataType.Text)]
|
|
[DisplayName("SABnzbd Category")]
|
|
public String SabCategory
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Required(ErrorMessage = "Please select a valid priority")]
|
|
[DataType(DataType.Text)]
|
|
[DisplayName("SABnzbd Priority")]
|
|
public SabnzbdPriorityType SabPriority
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public SelectList PrioritySelectList = new SelectList(new string[] { "Default", "Paused", "Low", "Normal", "High", "Top" });
|
|
}
|
|
} |