mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +01:00
Fixed: Updated IPTorrents url validation to changed format.
fixes: #1493
This commit is contained in:
parent
19d625c6c5
commit
f2ccf94835
@ -16,8 +16,8 @@ public IPTorrentsSettingsValidator()
|
|||||||
|
|
||||||
RuleFor(c => c.Url).Matches(@"/rss\?.+$");
|
RuleFor(c => c.Url).Matches(@"/rss\?.+$");
|
||||||
|
|
||||||
RuleFor(c => c.Url).Matches(@"/rss\?.+;download$")
|
RuleFor(c => c.Url).Matches(@"/rss\?.+;download(?:;|$)")
|
||||||
.WithMessage("Use Direct Download Url")
|
.WithMessage("Use Direct Download Url (;download)")
|
||||||
.When(v => v.Url.IsNotNullOrWhiteSpace() && Regex.IsMatch(v.Url, @"/rss\?.+$"));
|
.When(v => v.Url.IsNotNullOrWhiteSpace() && Regex.IsMatch(v.Url, @"/rss\?.+$"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user