removed unused properties

This commit is contained in:
Luke Pulverenti 2013-06-13 11:58:47 -04:00
parent 3623f23c27
commit fa3a5174fe
4 changed files with 4 additions and 63 deletions

View File

@ -1,7 +1,4 @@
using MediaBrowser.Common.Extensions; using System.Collections.Generic;
using MediaBrowser.Model.Entities;
using System;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Runtime.Serialization; using System.Runtime.Serialization;
@ -131,20 +128,6 @@ namespace MediaBrowser.Controller.Entities.TV
} }
} }
/// <summary>
/// We persist the MB Id of our series object so we can always find it no matter
/// what context we happen to be loaded from.
/// </summary>
/// <value>The series item id.</value>
public Guid SeriesItemId { get; set; }
/// <summary>
/// We persist the MB Id of our season object so we can always find it no matter
/// what context we happen to be loaded from.
/// </summary>
/// <value>The season item id.</value>
public Guid SeasonItemId { get; set; }
/// <summary> /// <summary>
/// The _series /// The _series
/// </summary> /// </summary>

View File

@ -1,11 +1,8 @@
using System.Collections.Generic; using MediaBrowser.Controller.Library;
using System.IO;
using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller.IO;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Localization; using MediaBrowser.Controller.Localization;
using MediaBrowser.Model.Entities;
using System; using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization; using System.Runtime.Serialization;
namespace MediaBrowser.Controller.Entities.TV namespace MediaBrowser.Controller.Entities.TV
@ -82,13 +79,6 @@ namespace MediaBrowser.Controller.Entities.TV
return base.GetUserDataKey(); return base.GetUserDataKey();
} }
/// <summary>
/// We persist the MB Id of our series object so we can always find it no matter
/// what context we happen to be loaded from.
/// </summary>
/// <value>The series item id.</value>
public Guid SeriesItemId { get; set; }
/// <summary> /// <summary>
/// The _series /// The _series
/// </summary> /// </summary>

View File

@ -2,7 +2,6 @@
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Resolvers; using MediaBrowser.Controller.Resolvers;
using MediaBrowser.Model.Entities; using MediaBrowser.Model.Entities;
using System;
namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV
{ {
@ -71,32 +70,5 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV
return null; return null;
} }
/// <summary>
/// Sets the initial item values.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="args">The args.</param>
protected override void SetInitialItemValues(Episode item, ItemResolveArgs args)
{
base.SetInitialItemValues(item, args);
//fill in our season and series ids
var season = args.Parent as Season;
if (season != null)
{
item.SeasonItemId = season.Id;
var series = season.Parent as Series;
if (series != null)
{
item.SeriesItemId = series.Id;
}
}
else
{
var series = args.Parent as Series;
item.SeriesItemId = series != null ? series.Id : Guid.Empty;
}
}
} }
} }

View File

@ -1,7 +1,6 @@
using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities.TV; using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Library;
using System;
namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV
{ {
@ -58,9 +57,6 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV
{ {
base.SetInitialItemValues(item, args); base.SetInitialItemValues(item, args);
var series = args.Parent as Series;
item.SeriesItemId = series != null ? series.Id : Guid.Empty;
Season.AddMetadataFiles(args); Season.AddMetadataFiles(args);
} }
} }