mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 01:27:00 +00:00
Episode cleanup and added end date
This commit is contained in:
parent
ccbd88be74
commit
754c50aeba
1 changed files with 13 additions and 7 deletions
|
@ -9,8 +9,8 @@ namespace NzbDrone.Core.Tv
|
|||
public class Episode : ModelBase
|
||||
{
|
||||
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; }
|
||||
|
@ -18,9 +18,7 @@ public class Episode : ModelBase
|
|||
//Todo: Since we're displaying next airing relative to the user's time zone we may want to store this as UTC (with airtime + UTC offset)
|
||||
public DateTime? AirDate { get; set; }
|
||||
|
||||
|
||||
public string Overview { get; set; }
|
||||
|
||||
public Boolean Ignored { get; set; }
|
||||
public PostDownloadStatusType PostDownloadStatus { get; set; }
|
||||
public Nullable<Int32> AbsoluteEpisodeNumber { get; set; }
|
||||
|
@ -34,10 +32,7 @@ public bool HasFile
|
|||
{
|
||||
get { return EpisodeFile != null; }
|
||||
}
|
||||
|
||||
public int EpisodeFileId { get; set; }
|
||||
|
||||
|
||||
|
||||
public EpisodeStatuses Status
|
||||
{
|
||||
get
|
||||
|
@ -69,6 +64,17 @@ public EpisodeStatuses Status
|
|||
}
|
||||
}
|
||||
|
||||
public DateTime? EndTime
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!AirDate.HasValue) return null;
|
||||
if (Series == null) return null;
|
||||
|
||||
return AirDate.Value.AddMinutes(Series.Runtime);
|
||||
}
|
||||
}
|
||||
|
||||
public Series Series { get; set; }
|
||||
|
||||
public EpisodeFile EpisodeFile { get; set; }
|
||||
|
|
Loading…
Reference in a new issue