|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using NzbDrone.Core.Languages;
|
|
|
|
using NzbDrone.Core.Languages;
|
|
|
@ -88,14 +89,14 @@ namespace NzbDrone.Core.Parser
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static IsoLanguage FindByName(string name)
|
|
|
|
public static IsoLanguage Get(Language language)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return All.FirstOrDefault(l => l.EnglishName == name.Trim());
|
|
|
|
return All.FirstOrDefault(l => l.Language == language);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static IsoLanguage Get(Language language)
|
|
|
|
public static IsoLanguage FindByName(string name)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return All.FirstOrDefault(l => l.Language == language);
|
|
|
|
return All.FirstOrDefault(l => l.EnglishName.Equals(name.Trim(), StringComparison.InvariantCultureIgnoreCase));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|