updated mbt api

This commit is contained in:
Luke Pulverenti 2013-11-04 10:25:16 -05:00
parent 97680efefb
commit 4bbe8acb5c
2 changed files with 1 additions and 18 deletions

View File

@ -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);

View File

@ -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; }