1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

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

This commit is contained in:
ta264 2020-05-17 14:19:41 +01:00 committed by Qstick
parent c8a2af867e
commit 4a5012f98e

View File

@ -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 (movie.Year > 1850)
if (result != null)
{ {
return true; result = FindByTitle(movie.Title.CleanSeriesTitle(), movie.Year);
if (result != null)
{
return true;
}
} }
} else
else
{
result = FindByTitle(movie.Title.CleanSeriesTitle());
if (result != null)
{ {
return true; result = FindByTitle(movie.Title.CleanSeriesTitle());
if (result != null)
{
return true;
}
} }
} }