mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Fixes for code review
This commit is contained in:
parent
c459cdf168
commit
2dbf0ecc82
@ -11,18 +11,7 @@ public class SpecialEpisodeSearchCriteria : SearchCriteriaBase
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
bool delimiter = false;
|
||||
foreach (var title in EpisodeQueryTitles)
|
||||
{
|
||||
if (delimiter)
|
||||
{
|
||||
sb.Append(',');
|
||||
}
|
||||
sb.Append(title);
|
||||
delimiter = true;
|
||||
}
|
||||
return string.Format("[{0} : {1}]", SceneTitle, sb.ToString());
|
||||
return string.Format("[{0} : {1}]", SceneTitle, String.Join(",", EpisodeQueryTitles));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,12 @@ public bool IsAbsoluteNumbering()
|
||||
public bool IsPossibleSpecialEpisode()
|
||||
{
|
||||
// if we dont have eny episode numbers we are likely a special episode and need to do a search by episode title
|
||||
return string.IsNullOrEmpty(AirDate) && (EpisodeNumbers.Length == 0 || SeasonNumber == 0 || String.IsNullOrWhiteSpace(SeriesTitle));
|
||||
return string.IsNullOrEmpty(AirDate) &&
|
||||
(
|
||||
EpisodeNumbers.Length == 0 ||
|
||||
SeasonNumber == 0 ||
|
||||
String.IsNullOrWhiteSpace(SeriesTitle)
|
||||
);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
Loading…
Reference in New Issue
Block a user