removed unused properties

pull/702/head
Luke Pulverenti 12 years ago
parent 3623f23c27
commit fa3a5174fe

@ -1,7 +1,4 @@
using MediaBrowser.Common.Extensions;
using MediaBrowser.Model.Entities;
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
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>
/// The _series
/// </summary>

@ -1,11 +1,8 @@
using System.Collections.Generic;
using System.IO;
using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller.IO;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Localization;
using MediaBrowser.Model.Entities;
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
namespace MediaBrowser.Controller.Entities.TV
@ -82,13 +79,6 @@ namespace MediaBrowser.Controller.Entities.TV
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>
/// The _series
/// </summary>

@ -2,7 +2,6 @@
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Resolvers;
using MediaBrowser.Model.Entities;
using System;
namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV
{
@ -71,32 +70,5 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV
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;
}
}
}
}

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

Loading…
Cancel
Save