Fix net import sync - title won't exist until movie mapped

pull/2/head
ta264 5 years ago committed by Qstick
parent c8a2af867e
commit 4a5012f98e

@ -351,20 +351,23 @@ namespace NzbDrone.Core.Movies
}
}
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;
}
}
}

Loading…
Cancel
Save