|
|
|
@ -346,7 +346,7 @@ namespace NzbDrone.Core.Parser
|
|
|
|
|
return languages.DistinctBy(l => (int)l).ToList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static IEnumerable<string> ParseLanguageTags(string fileName)
|
|
|
|
|
public static List<string> ParseLanguageTags(string fileName)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
@ -355,14 +355,14 @@ namespace NzbDrone.Core.Parser
|
|
|
|
|
var languageTags = match.Groups["tags"].Captures.Cast<Capture>()
|
|
|
|
|
.Where(tag => !tag.Value.Empty())
|
|
|
|
|
.Select(tag => tag.Value.ToLower());
|
|
|
|
|
return languageTags;
|
|
|
|
|
return languageTags.ToList();
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
Logger.Debug(ex, "Failed parsing language tags from subtitle file: {0}", fileName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Enumerable.Empty<string>();
|
|
|
|
|
return new List<string>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static Language ParseSubtitleLanguage(string fileName)
|
|
|
|
|