2013-03-26 05:51:56 +00:00
|
|
|
|
using System;
|
2013-03-31 20:25:39 +00:00
|
|
|
|
using System.Collections.Generic;
|
2013-04-11 04:30:51 +00:00
|
|
|
|
using Marr.Data;
|
2013-02-19 06:56:02 +00:00
|
|
|
|
using NzbDrone.Core.Datastore;
|
2013-03-31 20:25:39 +00:00
|
|
|
|
using NzbDrone.Core.MetadataSource.Trakt;
|
2012-01-24 06:29:32 +00:00
|
|
|
|
using NzbDrone.Core.Model;
|
2013-02-27 03:19:22 +00:00
|
|
|
|
using NzbDrone.Core.Qualities;
|
2013-04-11 04:30:51 +00:00
|
|
|
|
using NzbDrone.Core.RootFolders;
|
2013-03-24 04:16:00 +00:00
|
|
|
|
|
2010-09-23 03:19:47 +00:00
|
|
|
|
|
2013-02-19 06:01:03 +00:00
|
|
|
|
namespace NzbDrone.Core.Tv
|
2010-09-23 03:19:47 +00:00
|
|
|
|
{
|
2013-03-04 05:53:02 +00:00
|
|
|
|
public enum SeriesTypes
|
2013-02-20 02:05:15 +00:00
|
|
|
|
{
|
2013-03-04 05:53:02 +00:00
|
|
|
|
Standard = 0,
|
|
|
|
|
Daily = 1,
|
2013-02-20 02:05:15 +00:00
|
|
|
|
Anime = 2,
|
|
|
|
|
}
|
|
|
|
|
|
2013-02-19 06:56:02 +00:00
|
|
|
|
public class Series : ModelBase
|
2010-09-23 03:19:47 +00:00
|
|
|
|
{
|
2013-03-26 05:51:56 +00:00
|
|
|
|
public Series()
|
|
|
|
|
{
|
2013-03-31 21:45:16 +00:00
|
|
|
|
Images = new List<MediaCover.MediaCover>();
|
2013-03-26 05:51:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
2013-02-24 19:57:33 +00:00
|
|
|
|
public int TvDbId { get; set; }
|
2013-03-31 23:40:19 +00:00
|
|
|
|
public int TvRageId { get; set; }
|
|
|
|
|
public string ImdbId { get; set; }
|
2010-10-02 19:01:43 +00:00
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
public string CleanTitle { get; set; }
|
2013-03-25 04:36:24 +00:00
|
|
|
|
public SeriesStatusType Status { get; set; }
|
2010-09-28 05:58:49 +00:00
|
|
|
|
public string Overview { get; set; }
|
2013-02-09 10:04:18 +00:00
|
|
|
|
public String AirTime { get; set; }
|
2010-10-02 19:01:43 +00:00
|
|
|
|
public bool Monitored { get; set; }
|
2013-03-01 04:59:06 +00:00
|
|
|
|
public int QualityProfileId { get; set; }
|
2011-06-18 04:39:02 +00:00
|
|
|
|
public bool SeasonFolder { get; set; }
|
|
|
|
|
public DateTime? LastInfoSync { get; set; }
|
|
|
|
|
public DateTime? LastDiskSync { get; set; }
|
2011-09-10 08:42:05 +00:00
|
|
|
|
public int Runtime { get; set; }
|
2013-03-31 20:25:39 +00:00
|
|
|
|
public List<MediaCover.MediaCover> Images { get; set; }
|
2013-03-24 00:08:23 +00:00
|
|
|
|
public SeriesTypes SeriesType { get; set; }
|
2012-01-26 01:02:21 +00:00
|
|
|
|
public BacklogSettingType BacklogSetting { get; set; }
|
2012-02-29 07:20:40 +00:00
|
|
|
|
public string Network { get; set; }
|
2012-09-20 15:37:40 +00:00
|
|
|
|
public DateTime? CustomStartDate { get; set; }
|
2012-10-17 07:39:06 +00:00
|
|
|
|
public bool UseSceneNumbering { get; set; }
|
2013-03-31 21:45:16 +00:00
|
|
|
|
public string TitleSlug { get; set; }
|
2012-12-19 16:41:51 +00:00
|
|
|
|
|
2013-04-11 04:30:51 +00:00
|
|
|
|
public int RootFolderId { get; set; }
|
2013-04-11 15:28:08 +00:00
|
|
|
|
public string FolderName { get; set; }
|
2013-04-11 04:30:51 +00:00
|
|
|
|
public LazyLoaded<RootFolder> RootFolder { get; set; }
|
|
|
|
|
|
2013-04-11 07:55:39 +00:00
|
|
|
|
//Todo: Use this to auto link RootFolder and Folder (using the proper path separator)
|
|
|
|
|
public string Path
|
|
|
|
|
{
|
2013-04-11 16:13:57 +00:00
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (RootFolder == null || RootFolder.Value == null || String.IsNullOrWhiteSpace(RootFolder.Value.Path))
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return System.IO.Path.Combine(RootFolder.Value.Path, FolderName);
|
|
|
|
|
}
|
2013-04-11 07:55:39 +00:00
|
|
|
|
}
|
2013-04-11 04:30:51 +00:00
|
|
|
|
|
2013-02-13 06:32:17 +00:00
|
|
|
|
//Todo: This should be a double since there are timezones that aren't on a full hour offset
|
2012-12-19 16:41:51 +00:00
|
|
|
|
public int UtcOffset { get; set; }
|
|
|
|
|
|
2012-12-27 00:16:15 +00:00
|
|
|
|
public DateTime? FirstAired { get; set; }
|
2011-06-18 04:39:02 +00:00
|
|
|
|
public QualityProfile QualityProfile { get; set; }
|
2011-09-28 17:56:30 +00:00
|
|
|
|
public DateTime? NextAiring { get; set; }
|
2010-09-23 03:19:47 +00:00
|
|
|
|
}
|
2010-09-28 05:58:49 +00:00
|
|
|
|
}
|