Fix spelling "Use languages from Torznab/Newznab attributes if given"

(cherry picked from commit de3bfb7c5ab03e527dca1be3ef4a664dce266db6)
pull/8516/head
Bogdan 1 year ago
parent b7be2c1d6e
commit e9dcef34d4

@ -107,16 +107,16 @@ namespace NzbDrone.Core.Indexers.Newznab
protected override List<Language> GetLanguages(XElement item)
{
var languges = TryGetMultipleNewznabAttributes(item, "language");
var languages = TryGetMultipleNewznabAttributes(item, "language");
var results = new List<Language>();
// Try to find <language> 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;

@ -103,16 +103,16 @@ namespace NzbDrone.Core.Indexers.Torznab
protected override List<Language> GetLanguages(XElement item)
{
var languges = TryGetMultipleTorznabAttributes(item, "language");
var languages = TryGetMultipleTorznabAttributes(item, "language");
var results = new List<Language>();
// Try to find <language> 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;

Loading…
Cancel
Save