fixes #286 - Support double episodes
This commit is contained in:
parent
3e656f5a37
commit
dd3f6fcc26
|
@ -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>();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user