From b6ddc8756bb6dc3f7e8aac98f3a457074883daaa Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sun, 11 Oct 2015 02:18:51 +0200 Subject: [PATCH] Fixed typo in nn caps and apikey error message. --- .../Indexers/Newznab/NewznabCapabilitiesProvider.cs | 2 +- src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilitiesProvider.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilitiesProvider.cs index 550764f24..8ba76ce14 100644 --- a/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilitiesProvider.cs +++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilitiesProvider.cs @@ -112,7 +112,7 @@ namespace NzbDrone.Core.Indexers.Newznab { Id = int.Parse(xmlSubcat.Attribute("id").Value), Name = xmlSubcat.Attribute("name").Value, - Description = xmlSubcat.Attribute("description") != null ? xmlCategory.Attribute("description").Value : string.Empty + Description = xmlSubcat.Attribute("description") != null ? xmlSubcat.Attribute("description").Value : string.Empty }); } diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs index d6a4a7f1f..416b3ce8a 100644 --- a/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs +++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs @@ -27,7 +27,7 @@ namespace NzbDrone.Core.Indexers.Newznab throw new ApiKeyException("Invalid API key"); } - if (!indexerResponse.Request.Url.ToString().Contains("apikey=") && errorMessage == "Missing parameter") + if (!indexerResponse.Request.Url.ToString().Contains("apikey=") && (errorMessage == "Missing parameter" || errorMessage.Contains("apikey"))) { throw new ApiKeyException("Indexer requires an API key"); }