From ab9c22f7c1727cf9540c98fb03d8aa4ae9129398 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 3 Aug 2013 14:39:07 -0700 Subject: [PATCH] Newznab urls will have any trailing slashes stripped before searching --- NzbDrone.Core/Indexers/Newznab/Newznab.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Core/Indexers/Newznab/Newznab.cs b/NzbDrone.Core/Indexers/Newznab/Newznab.cs index 8168d0740..0f5261448 100644 --- a/NzbDrone.Core/Indexers/Newznab/Newznab.cs +++ b/NzbDrone.Core/Indexers/Newznab/Newznab.cs @@ -68,12 +68,12 @@ public override IEnumerable RecentFeed get { //Todo: We should be able to update settings on start - if (Name.Equals("nzbs.org")) + if (Name.Equals("nzbs.org", StringComparison.InvariantCultureIgnoreCase)) { Settings.Categories = new List{ 5000 }; } - var url = String.Format("{0}/api?t=tvsearch&cat={1}", Settings.Url, String.Join(",", Settings.Categories)); + var url = String.Format("{0}/api?t=tvsearch&cat={1}", Settings.Url.TrimEnd('/'), String.Join(",", Settings.Categories)); if (!String.IsNullOrWhiteSpace(Settings.ApiKey)) {