From d37b24cd0b423d6d5fe826296a806685d43be31a Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 25 Oct 2015 10:10:57 -0700 Subject: [PATCH] Better UI messaging when searching for all specials in a series Fixed: Specials season search UI messaging Closes #881 --- .../Definitions/SpecialEpisodeSearchCriteria.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/IndexerSearch/Definitions/SpecialEpisodeSearchCriteria.cs b/src/NzbDrone.Core/IndexerSearch/Definitions/SpecialEpisodeSearchCriteria.cs index ccb548188..2b5c0bc0c 100644 --- a/src/NzbDrone.Core/IndexerSearch/Definitions/SpecialEpisodeSearchCriteria.cs +++ b/src/NzbDrone.Core/IndexerSearch/Definitions/SpecialEpisodeSearchCriteria.cs @@ -1,4 +1,4 @@ -using System; +using System.Linq; namespace NzbDrone.Core.IndexerSearch.Definitions { @@ -8,6 +8,13 @@ public class SpecialEpisodeSearchCriteria : SearchCriteriaBase public override string ToString() { + var episodeTitles = EpisodeQueryTitles.ToList(); + + if (episodeTitles.Count > 0) + { + return string.Format("[{0}] Specials", Series.Title); + } + return string.Format("[{0} : {1}]", Series.Title, string.Join(",", EpisodeQueryTitles)); } }