mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-27 23:16:58 -04:00
@cosmetic Added Parsing Library: A dotnet library that "exports" our parsing interface.
This commit is contained in:
@@ -142,7 +142,9 @@ namespace NzbDrone.Core.Parser
|
||||
{
|
||||
try
|
||||
{
|
||||
#if !LIBRARY
|
||||
Logger.Debug("Parsing language from subtitle file: {0}", fileName);
|
||||
#endif
|
||||
|
||||
var simpleFilename = Path.GetFileNameWithoutExtension(fileName);
|
||||
var languageMatch = SubtitleLanguageRegex.Match(simpleFilename);
|
||||
@@ -154,12 +156,15 @@ namespace NzbDrone.Core.Parser
|
||||
|
||||
return isoLanguage?.Language ?? Language.Unknown;
|
||||
}
|
||||
|
||||
#if !LIBRARY
|
||||
Logger.Debug("Unable to parse langauge from subtitle file: {0}", fileName);
|
||||
#endif
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
#if !LIBRARY
|
||||
Logger.Debug("Failed parsing langauge from subtitle file: {0}", fileName);
|
||||
#endif
|
||||
}
|
||||
|
||||
return Language.Unknown;
|
||||
|
||||
Reference in New Issue
Block a user