mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Fixed: Updated IPTorrents url validation to changed format.
fixes: #1493
This commit is contained in:
parent
19d625c6c5
commit
f2ccf94835
1 changed files with 3 additions and 3 deletions
|
@ -16,8 +16,8 @@ namespace NzbDrone.Core.Indexers.IPTorrents
|
|||
|
||||
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 @@ namespace NzbDrone.Core.Indexers.IPTorrents
|
|||
return new NzbDroneValidationResult(Validator.Validate(this));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue