mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Improve Parsing Logging
This commit is contained in:
parent
2f4da90d8a
commit
64125a31b6
@ -45,13 +45,13 @@ public ParsedMovieInfo ParseMinimalPathMovieInfo(string path)
|
|||||||
|
|
||||||
if (result == null)
|
if (result == null)
|
||||||
{
|
{
|
||||||
_logger.Debug("Attempting to parse movie info using directory and file names. {0}", fileInfo.Directory.Name);
|
_logger.Debug("Attempting to parse movie info using directory and file names. '{0}'", fileInfo.Directory.Name);
|
||||||
result = Parser.ParseMovieTitle(fileInfo.Directory.Name + " " + fileInfo.Name);
|
result = Parser.ParseMovieTitle(fileInfo.Directory.Name + " " + fileInfo.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == null)
|
if (result == null)
|
||||||
{
|
{
|
||||||
_logger.Debug("Attempting to parse movie info using directory name. {0}", fileInfo.Directory.Name);
|
_logger.Debug("Attempting to parse movie info using directory name. '{0}'", fileInfo.Directory.Name);
|
||||||
result = Parser.ParseMovieTitle(fileInfo.Directory.Name + fileInfo.Extension);
|
result = Parser.ParseMovieTitle(fileInfo.Directory.Name + fileInfo.Extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ private FindMovieResult FindMovie(ParsedMovieInfo parsedMovieInfo, string imdbId
|
|||||||
|
|
||||||
if (result == null)
|
if (result == null)
|
||||||
{
|
{
|
||||||
_logger.Debug($"No matching movie for titles {string.Join(", ", parsedMovieInfo.MovieTitles)} ({parsedMovieInfo.Year})");
|
_logger.Debug($"No matching movie for titles '{string.Join(", ", parsedMovieInfo.MovieTitles)} ({parsedMovieInfo.Year})"');
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user