Fixed: Search Failing due to Null Titles

Fixes #4578
pull/2/head
Qstick 4 years ago
parent 075f024cec
commit 74539d2025

@ -3,6 +3,7 @@ using System.Collections.Generic;
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 @@ namespace NzbDrone.Core.IndexerSearch
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;
} }

Loading…
Cancel
Save