diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-07-05 01:40:18 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-07-05 01:40:18 -0400 |
| commit | 2772d595596b3e682dbce890e53bdc3ef027df46 (patch) | |
| tree | d391750eda5daa89a7ab4dc9f4f76917859d3ca4 /MediaBrowser.Controller/Entities | |
| parent | 73e2b1f28355aafae5cc00acdb1bda881b3909a8 (diff) | |
denormalize seasonid
Diffstat (limited to 'MediaBrowser.Controller/Entities')
| -rw-r--r-- | MediaBrowser.Controller/Entities/TV/Episode.cs | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/MediaBrowser.Controller/Entities/TV/Episode.cs b/MediaBrowser.Controller/Entities/TV/Episode.cs index d7526a535..4ff1813ff 100644 --- a/MediaBrowser.Controller/Entities/TV/Episode.cs +++ b/MediaBrowser.Controller/Entities/TV/Episode.cs @@ -13,7 +13,6 @@ namespace MediaBrowser.Controller.Entities.TV /// </summary> public class Episode : Video, IHasTrailers, IHasLookupInfo<EpisodeInfo>, IHasSeries {
-
public Episode()
{
RemoteTrailers = new List<MediaUrl>();
@@ -181,6 +180,12 @@ namespace MediaBrowser.Controller.Entities.TV {
var series = Series;
return series == null ? SeriesName : series.Name;
+ }
+
+ public Guid? FindSeasonId()
+ {
+ var season = Season;
+ return season == null ? (Guid?)null : season.Id;
} /// <summary> @@ -243,21 +248,7 @@ namespace MediaBrowser.Controller.Entities.TV } [IgnoreDataMember] - public Guid? SeasonId - { - get - { - // First see if the parent is a Season - var season = Season; - - if (season != null) - { - return season.Id; - } - - return null; - } - } + public Guid? SeasonId { get; set; } public override IEnumerable<Guid> GetAncestorIds() { |
