From e9dcef34d41fadaa8a18c421bfadfeaf33dd6d1c Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 21 May 2023 19:05:18 +0300 Subject: [PATCH] Fix spelling "Use languages from Torznab/Newznab attributes if given" (cherry picked from commit de3bfb7c5ab03e527dca1be3ef4a664dce266db6) --- src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs | 8 ++++---- src/NzbDrone.Core/Indexers/Torznab/TorznabRssParser.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs index 90c5ffad5..7b05c88df 100644 --- a/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs +++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs @@ -107,16 +107,16 @@ namespace NzbDrone.Core.Indexers.Newznab protected override List GetLanguages(XElement item) { - var languges = TryGetMultipleNewznabAttributes(item, "language"); + var languages = TryGetMultipleNewznabAttributes(item, "language"); var results = new List(); // Try to find elements for some indexers that suck at following the rules. - if (languges.Count == 0) + if (languages.Count == 0) { - languges = item.Elements("language").Select(e => e.Value).ToList(); + languages = item.Elements("language").Select(e => e.Value).ToList(); } - foreach (var language in languges) + foreach (var language in languages) { var mappedLanguage = IsoLanguages.FindByName(language)?.Language ?? null; diff --git a/src/NzbDrone.Core/Indexers/Torznab/TorznabRssParser.cs b/src/NzbDrone.Core/Indexers/Torznab/TorznabRssParser.cs index bbf7601aa..51d963bc5 100644 --- a/src/NzbDrone.Core/Indexers/Torznab/TorznabRssParser.cs +++ b/src/NzbDrone.Core/Indexers/Torznab/TorznabRssParser.cs @@ -103,16 +103,16 @@ namespace NzbDrone.Core.Indexers.Torznab protected override List GetLanguages(XElement item) { - var languges = TryGetMultipleTorznabAttributes(item, "language"); + var languages = TryGetMultipleTorznabAttributes(item, "language"); var results = new List(); // Try to find elements for some indexers that suck at following the rules. - if (languges.Count == 0) + if (languages.Count == 0) { - languges = item.Elements("language").Select(e => e.Value).ToList(); + languages = item.Elements("language").Select(e => e.Value).ToList(); } - foreach (var language in languges) + foreach (var language in languages) { var mappedLanguage = IsoLanguages.FindByName(language)?.Language ?? null;