Possible special is less aggressive, with tests

This commit is contained in:
Mark McDowall
2014-02-22 15:33:11 -08:00
parent 7279b58a58
commit 6d1cb90723
3 changed files with 43 additions and 6 deletions

View File

@@ -37,12 +37,9 @@ namespace NzbDrone.Core.Parser.Model
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.IsNullOrWhiteSpace(AirDate) &&
(EpisodeNumbers.Length == 0 || SeasonNumber == 0) &&
String.IsNullOrWhiteSpace(SeriesTitle);
}
public override string ToString()