1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Fixed: Search Failing due to Null Titles

Fixes #4578
This commit is contained in:
Qstick 2020-07-08 09:24:40 -04:00
parent 075f024cec
commit 74539d2025

View File

@ -3,6 +3,7 @@
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using NLog; using NLog;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Instrumentation.Extensions; using NzbDrone.Common.Instrumentation.Extensions;
using NzbDrone.Common.TPL; using NzbDrone.Common.TPL;
using NzbDrone.Core.DecisionEngine; using NzbDrone.Core.DecisionEngine;
@ -84,7 +85,7 @@ private TSpec Get<TSpec>(Movie movie, bool userInvokedSearch, bool interactiveSe
queryTranlations.Add(translation.Title); queryTranlations.Add(translation.Title);
} }
spec.SceneTitles = queryTranlations.Distinct().ToList(); spec.SceneTitles = queryTranlations.Distinct().Where(t => t.IsNotNullOrWhiteSpace()).ToList();
return spec; return spec;
} }