mirror of
https://github.com/Readarr/Readarr.git
synced 2026-09-22 19:25:04 -04:00
Fixed: Updated IPTorrents url validation to changed format.
fixes: #1493
This commit is contained in:
1 parent
19d625c6c5
commit
f2ccf94835
1 file changed
+3
-3
@@ -16,8 +16,8 @@ public IPTorrentsSettingsValidator()
|
||||
|
||||
RuleFor(c => c.Url).Matches(@"/rss\?.+$");
|
||||
|
||||
RuleFor(c => c.Url).Matches(@"/rss\?.+;download$")
|
||||
.WithMessage("Use Direct Download Url")
|
||||
RuleFor(c => c.Url).Matches(@"/rss\?.+;download(?:;|$)")
|
||||
.WithMessage("Use Direct Download Url (;download)")
|
||||
.When(v => v.Url.IsNotNullOrWhiteSpace() && Regex.IsMatch(v.Url, @"/rss\?.+$"));
|
||||
}
|
||||
}
|
||||
@@ -38,4 +38,4 @@ public NzbDroneValidationResult Validate()
|
||||
return new NzbDroneValidationResult(Validator.Validate(this));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user