From ddb7d5690ba12a2aa8fdec073a7767aaa1ca448e Mon Sep 17 00:00:00 2001 From: justin vanderhooft Date: Fri, 8 Jan 2021 09:41:34 -0500 Subject: [PATCH] Fixed: Show root folder when path is not available yet on imports (cherry picked from commit f6fbd3cfee4db891e68f9f15551ea62b02077b5e) --- src/NzbDrone.Core/Movies/AddMovieService.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Movies/AddMovieService.cs b/src/NzbDrone.Core/Movies/AddMovieService.cs index 798be5f96..85b4cbb26 100644 --- a/src/NzbDrone.Core/Movies/AddMovieService.cs +++ b/src/NzbDrone.Core/Movies/AddMovieService.cs @@ -6,6 +6,7 @@ using FluentValidation; using FluentValidation.Results; using NLog; using NzbDrone.Common.EnsureThat; +using NzbDrone.Common.Extensions; using NzbDrone.Core.Exceptions; using NzbDrone.Core.MetadataSource; using NzbDrone.Core.Organizer; @@ -67,7 +68,14 @@ namespace NzbDrone.Core.Movies foreach (var m in newMovies) { - _logger.Info("Adding Movie {0} Path: [{1}]", m, m.Path); + if (m.Path.IsNullOrWhiteSpace()) + { + _logger.Info("Adding Movie {0} Root Folder Path: [{1}]", m, m.RootFolderPath); + } + else + { + _logger.Info("Adding Movie {0} Path: [{1}]", m, m.Path); + } try {