Code cleanup per commit comments. More Work?!

EpisodeParseResult will use Season ## when it is a full season instead of writing out each episode number.
This commit is contained in:
Mark McDowall
2012-01-30 22:55:57 -08:00
parent 1f983094ac
commit 26adbf2602
2 changed files with 11 additions and 14 deletions

View File

@@ -44,6 +44,9 @@ namespace NzbDrone.Core.Model
if (AirDate != null && EpisodeNumbers == null)
return string.Format("{0} - {1} {2}", SeriesTitle, AirDate.Value.ToShortDateString(), Quality);
if (FullSeason)
return string.Format("{0} - Season {1:00}", SeriesTitle, SeasonNumber);
if (EpisodeNumbers != null)
return string.Format("{0} - S{1:00}E{2} {3}", SeriesTitle, SeasonNumber,
String.Join("-", EpisodeNumbers), Quality);