mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
Logging/Download notification tweaks.
This commit is contained in:
parent
e0f901dbe7
commit
7e38afc838
9 changed files with 159 additions and 18 deletions
|
@ -44,17 +44,23 @@ namespace NzbDrone.Core.Model
|
|||
|
||||
public override string ToString()
|
||||
{
|
||||
|
||||
string episodeString = "[Unknown Episode]";
|
||||
|
||||
if (AirDate != null && EpisodeNumbers == null)
|
||||
return string.Format("{0} - {1} {2}", SeriesTitle, AirDate.Value.ToShortDateString(), Quality);
|
||||
{
|
||||
episodeString = string.Format("{0}", AirDate.Value.ToString("yyyy-MM-dd"));
|
||||
}
|
||||
else if (FullSeason)
|
||||
{
|
||||
episodeString = string.Format("Season {0:00}", SeasonNumber);
|
||||
}
|
||||
else if (EpisodeNumbers != null && EpisodeNumbers.Any())
|
||||
{
|
||||
episodeString = string.Format("S{0:00}E{1}",SeasonNumber, String.Join("-", EpisodeNumbers.Select(c => c.ToString("00"))));
|
||||
}
|
||||
|
||||
if (FullSeason)
|
||||
return string.Format("{0} - Season {1:00}", SeriesTitle, SeasonNumber);
|
||||
|
||||
if (EpisodeNumbers != null && EpisodeNumbers.Any())
|
||||
return string.Format("{0} - S{1:00}E{2} {3}", SeriesTitle, SeasonNumber,
|
||||
String.Join("-", EpisodeNumbers.Select(c => c.ToString("00"))), Quality);
|
||||
|
||||
return "[Invalid format]";
|
||||
return string.Format("{0} - {1} {2}", SeriesTitle, episodeString, Quality);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue