mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Better UI messaging when searching for all specials in a series
Fixed: Specials season search UI messaging Closes #881
This commit is contained in:
parent
c9a36fe4b2
commit
d37b24cd0b
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System.Linq;
|
||||||
|
|
||||||
namespace NzbDrone.Core.IndexerSearch.Definitions
|
namespace NzbDrone.Core.IndexerSearch.Definitions
|
||||||
{
|
{
|
||||||
@ -8,6 +8,13 @@ public class SpecialEpisodeSearchCriteria : SearchCriteriaBase
|
|||||||
|
|
||||||
public override string ToString()
|
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));
|
return string.Format("[{0} : {1}]", Series.Title, string.Join(",", EpisodeQueryTitles));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user