From f2ccf948356404beceb1e5dea73f7db79cb64dd3 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Mon, 10 Oct 2016 22:42:12 +0200 Subject: [PATCH] Fixed: Updated IPTorrents url validation to changed format. fixes: #1493 --- src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsSettings.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsSettings.cs b/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsSettings.cs index ef7884145..27d902f6e 100644 --- a/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsSettings.cs +++ b/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsSettings.cs @@ -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)); } } -} \ No newline at end of file +}