From 9ded23369c12ffdb3089a0a40b9bf49b3949c176 Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 9 Jun 2023 20:49:57 +0800 Subject: [PATCH] Logging for AutoId for movies --- TVRename/TVRename/PossibleNewMovie.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TVRename/TVRename/PossibleNewMovie.cs b/TVRename/TVRename/PossibleNewMovie.cs index a3747cc18..3764cc86a 100644 --- a/TVRename/TVRename/PossibleNewMovie.cs +++ b/TVRename/TVRename/PossibleNewMovie.cs @@ -60,6 +60,7 @@ public void GuessMovie(bool showErrorMsgBox) if (tmdbCode.HasValue) { SetId(tmdbCode.Value, TVDoc.ProviderType.TMDB); + Logger.Info($"BULK ADD AUTO ID: identified {Name} ({movieFile.Name}) based on TMDB = {tmdbId} which validated to {tmdbCode}"); return; } @@ -86,6 +87,7 @@ public void GuessMovie(bool showErrorMsgBox) { SetId(s.TmdbCode, TVDoc.ProviderType.TMDB); imdbCodeInternal = imdbToTest; + Logger.Info($"BULK ADD AUTO ID: identified {Name} ({movieFile.Name}) based on IMDB = {imdbToTest} which we looked up to get {s.TmdbCode}"); return; } } @@ -95,6 +97,7 @@ public void GuessMovie(bool showErrorMsgBox) if (ser != null) { SetId(ser.TmdbCode, TVDoc.ProviderType.TMDB); + Logger.Info($"BULK ADD AUTO ID: identified {Name} ({movieFile.Name}) based on Name = {RefinedHint} which we looked up to get {ser.TmdbCode}"); return; } @@ -103,6 +106,7 @@ public void GuessMovie(bool showErrorMsgBox) if (ser != null) { SetId(ser.TmdbCode, TVDoc.ProviderType.TMDB); + Logger.Info($"BULK ADD AUTO ID: identified {Name} ({movieFile.Name}) based on Name = {RefinedHint}({PossibleYear}) which we looked up to get {ser.TmdbCode}"); return; } @@ -113,6 +117,7 @@ public void GuessMovie(bool showErrorMsgBox) CachedMovieInfo? s2 = TMDB.LocalCache.Instance.LookupMovieByTvdb(tvdbId.Value, preferredLocale); if (s2 != null) { + Logger.Info($"BULK ADD AUTO ID: identified {Name} ({movieFile.Name}) based on TVDB = {tvdbId}({PossibleYear}) which we looked up to get {s2.TmdbCode}"); SetId(s2.TmdbCode, TVDoc.ProviderType.TMDB); } else @@ -121,6 +126,7 @@ public void GuessMovie(bool showErrorMsgBox) CachedMovieInfo? s3 = TheTVDB.LocalCache.Instance.GetMovieAndDownload(this, preferredLocale, showErrorMsgBox); if (s3 != null) { + Logger.Info($"BULK ADD AUTO ID: identified {Name} ({movieFile.Name}) based on TVDB(s3) = {tvdbId}({PossibleYear}) which we looked up to get {s3.TmdbCode}"); SetId(s3.TvdbCode, TVDoc.ProviderType.TheTVDB); } }