mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Fixed: Updated IPTorrents url validation to changed format.
fixes: #1493
This commit is contained in:
@@ -16,8 +16,8 @@ namespace NzbDrone.Core.Indexers.IPTorrents
|
|||||||
|
|
||||||
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\?.+$"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,4 +38,4 @@ namespace NzbDrone.Core.Indexers.IPTorrents
|
|||||||
return new NzbDroneValidationResult(Validator.Validate(this));
|
return new NzbDroneValidationResult(Validator.Validate(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user