AirDate now stored as a string

This commit is contained in:
Mark McDowall
2013-07-25 20:25:24 -07:00
parent ea278c39b6
commit 5bfcc511e8
20 changed files with 108 additions and 123 deletions

View File

@@ -9,13 +9,15 @@ namespace NzbDrone.Core.Tv
{
public class Episode : ModelBase
{
public const string AIR_DATE_FORMAT = "yyyy-MM-dd";
public int TvDbEpisodeId { get; set; }
public int SeriesId { get; set; }
public int EpisodeFileId { get; set; }
public int SeasonNumber { get; set; }
public int EpisodeNumber { get; set; }
public string Title { get; set; }
public DateTime? AirDate { get; set; }
public string AirDate { get; set; }
public DateTime? AirDateUtc { get; set; }
public string Overview { get; set; }
@@ -37,7 +39,7 @@ namespace NzbDrone.Core.Tv
public override string ToString()
{
return string.Format("[0]{1}", TvDbEpisodeId, Title.NullSafe());
return string.Format("[{0}]{1}", TvDbEpisodeId, Title.NullSafe());
}
}
}