1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Additional logging when we have to callback on language parse

This commit is contained in:
Qstick 2020-08-09 22:51:05 -04:00
parent d6a51f875c
commit 9f925a5dbd

View File

@ -136,6 +136,7 @@ public MappingResult Map(ParsedMovieInfo parsedMovieInfo, string imdbId, SearchC
if (parsedMovieInfo.Languages.Count <= 1 && parsedMovieInfo.Languages.First() == Language.Unknown && result.Movie != null) if (parsedMovieInfo.Languages.Count <= 1 && parsedMovieInfo.Languages.First() == Language.Unknown && result.Movie != null)
{ {
parsedMovieInfo.Languages = new List<Language> { result.Movie.OriginalLanguage }; parsedMovieInfo.Languages = new List<Language> { result.Movie.OriginalLanguage };
_logger.Debug("Language couldn't be parsed from release, fallback to movie original language: {0}", result.Movie.OriginalLanguage.Name);
} }
result.RemoteMovie.ParsedMovieInfo = parsedMovieInfo; result.RemoteMovie.ParsedMovieInfo = parsedMovieInfo;