mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Added some validation to Newznab.
This commit is contained in:
parent
92c6451bfc
commit
15279d3e97
1 changed files with 2 additions and 0 deletions
|
@ -12,10 +12,12 @@ namespace NzbDrone.Core.Repository
|
||||||
|
|
||||||
public Boolean Enable { get; set; }
|
public Boolean Enable { get; set; }
|
||||||
|
|
||||||
|
[StringLength(100, MinimumLength = 2)]
|
||||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||||
public String Name { get; set; }
|
public String Name { get; set; }
|
||||||
|
|
||||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||||
|
[RegularExpression(@"^http[s]?://.+")]
|
||||||
public String Url { get; set; }
|
public String Url { get; set; }
|
||||||
|
|
||||||
public String ApiKey { get; set; }
|
public String ApiKey { get; set; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue