New: NzbDrone service to automatically report errors and episode parse issues.

This commit is contained in:
kay.one 2012-02-04 22:34:36 -08:00
commit 174f765ec9
140 changed files with 10774 additions and 1694 deletions

View file

@ -1,4 +1,5 @@
using System;
using System.Linq;
using System.Collections.Generic;
using NzbDrone.Core.Repository;
@ -47,11 +48,11 @@ namespace NzbDrone.Core.Model
if (FullSeason)
return string.Format("{0} - Season {1:00}", SeriesTitle, SeasonNumber);
if (EpisodeNumbers != null)
if (EpisodeNumbers != null && EpisodeNumbers.Any())
return string.Format("{0} - S{1:00}E{2} {3}", SeriesTitle, SeasonNumber,
String.Join("-", EpisodeNumbers), Quality);
String.Join("-", EpisodeNumbers.Select(c => c.ToString("00"))), Quality);
return OriginalString;
return "[Invalid format]";
}
}