From 4a5012f98e4ece2f442210c321266ddee9d5301a Mon Sep 17 00:00:00 2001 From: ta264 Date: Sun, 17 May 2020 14:19:41 +0100 Subject: [PATCH] Fix net import sync - title won't exist until movie mapped --- src/NzbDrone.Core/Movies/MovieService.cs | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/NzbDrone.Core/Movies/MovieService.cs b/src/NzbDrone.Core/Movies/MovieService.cs index 71552b686..149165e8c 100644 --- a/src/NzbDrone.Core/Movies/MovieService.cs +++ b/src/NzbDrone.Core/Movies/MovieService.cs @@ -351,20 +351,23 @@ public bool MovieExists(Movie movie) } } - if (movie.Year > 1850) + if (movie.Title.IsNotNullOrWhiteSpace()) { - result = FindByTitle(movie.Title.CleanSeriesTitle(), movie.Year); - if (result != null) + if (movie.Year > 1850) { - return true; + result = FindByTitle(movie.Title.CleanSeriesTitle(), movie.Year); + if (result != null) + { + return true; + } } - } - else - { - result = FindByTitle(movie.Title.CleanSeriesTitle()); - if (result != null) + else { - return true; + result = FindByTitle(movie.Title.CleanSeriesTitle()); + if (result != null) + { + return true; + } } }