|
|
@ -12,7 +12,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge
|
|
|
|
RuleFor(c => c.Host).ValidHost();
|
|
|
|
RuleFor(c => c.Host).ValidHost();
|
|
|
|
RuleFor(c => c.Port).InclusiveBetween(1, 65535);
|
|
|
|
RuleFor(c => c.Port).InclusiveBetween(1, 65535);
|
|
|
|
|
|
|
|
|
|
|
|
RuleFor(c => c.MovieCategory).Matches("^[-a-z]*$").WithMessage("Allowed characters a-z and -");
|
|
|
|
RuleFor(c => c.MovieCategory).Matches("^[-a-z0-9]*$").WithMessage("Allowed characters a-z, 0-9, and -");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|