fixes #286 - Support double episodes

This commit is contained in:
Luke Pulverenti 2013-05-24 00:02:42 -04:00
parent 3e656f5a37
commit dd3f6fcc26
3 changed files with 38 additions and 27 deletions

View File

@ -444,6 +444,14 @@ namespace MediaBrowser.Controller.Dto
}
}
// Add EpisodeInfo
var episode = item as Episode;
if (episode != null)
{
dto.IndexNumberEnd = episode.IndexNumberEnd;
}
if (fields.Contains(ItemFields.SeriesInfo))
{
// Add SeriesInfo
@ -456,9 +464,6 @@ namespace MediaBrowser.Controller.Dto
dto.Status = series.Status;
}
// Add EpisodeInfo
var episode = item as Episode;
if (episode != null)
{
series = item.FindParent<Series>();

View File

@ -120,6 +120,12 @@ namespace MediaBrowser.Model.Dto
/// <value>The index number.</value>
public int? IndexNumber { get; set; }
/// <summary>
/// Gets or sets the index number end.
/// </summary>
/// <value>The index number end.</value>
public int? IndexNumberEnd { get; set; }
/// <summary>
/// Gets or sets the parent index number.
/// </summary>