update search
This commit is contained in:
parent
42542e10bf
commit
3bb65c6f99
|
@ -181,24 +181,19 @@ namespace MediaBrowser.Api
|
||||||
SetThumbImageInfo(result, item);
|
SetThumbImageInfo(result, item);
|
||||||
SetBackdropImageInfo(result, item);
|
SetBackdropImageInfo(result, item);
|
||||||
|
|
||||||
var episode = item as Episode;
|
var hasSeries = item as IHasSeries;
|
||||||
|
if (hasSeries != null)
|
||||||
if (episode != null)
|
|
||||||
{
|
{
|
||||||
result.Series = episode.Series.Name;
|
result.Series = hasSeries.SeriesName;
|
||||||
}
|
}
|
||||||
|
|
||||||
var season = item as Season;
|
var season = item as Season;
|
||||||
|
|
||||||
if (season != null)
|
if (season != null)
|
||||||
{
|
{
|
||||||
result.Series = season.Series.Name;
|
|
||||||
|
|
||||||
result.EpisodeCount = season.GetRecursiveChildren(i => i is Episode).Count;
|
result.EpisodeCount = season.GetRecursiveChildren(i => i is Episode).Count;
|
||||||
}
|
}
|
||||||
|
|
||||||
var series = item as Series;
|
var series = item as Series;
|
||||||
|
|
||||||
if (series != null)
|
if (series != null)
|
||||||
{
|
{
|
||||||
result.EpisodeCount = series.GetRecursiveChildren(i => i is Episode).Count;
|
result.EpisodeCount = series.GetRecursiveChildren(i => i is Episode).Count;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user