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:
parent
d6a51f875c
commit
9f925a5dbd
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user