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 @@ protected override string GetCommentUrl(XElement item) 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 @@ protected override string GetCommentUrl(XElement item) 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;