updated mbt api

pull/702/head
Luke Pulverenti 11 years ago
parent 97680efefb
commit 4bbe8acb5c

@ -280,18 +280,7 @@ namespace MediaBrowser.Api.DefaultTheme
var seriesWithBackdrops = series.Where(i => i.BackdropImagePaths.Count > 0).ToList();
var view = new TvView
{
SeriesCount = series.Count,
FavoriteSeriesCount = series.Count(i => _userDataManager.GetUserData(user.Id, i.GetUserDataKey()).IsFavorite),
TopCommunityRatedSeriesCount = series.Count(i => i.CommunityRating.HasValue && i.CommunityRating.Value >= request.TopCommunityRating),
ComedySeriesCount = series.Count(i => i.Genres.Any(comedyGenres.ContainsKey)),
RomanticSeriesCount = series.Count(i => i.Genres.Any(romanceGenres.ContainsKey))
};
var view = new TvView();
SetFavoriteGenres(view, series, user);
SetFavoriteStudios(view, series, user);

@ -41,12 +41,6 @@ namespace MediaBrowser.Api.DefaultTheme
public List<ItemStub> RomanceItems { get; set; }
public List<ItemStub> ComedyItems { get; set; }
public int SeriesCount { get; set; }
public int FavoriteSeriesCount { get; set; }
public int TopCommunityRatedSeriesCount { get; set; }
public int ComedySeriesCount { get; set; }
public int RomanticSeriesCount { get; set; }
public List<ItemByNameInfo> FavoriteGenres { get; set; }
public List<ItemByNameInfo> FavoriteStudios { get; set; }
public List<string> SeriesIdsInProgress { get; set; }

Loading…
Cancel
Save