mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
updated mbt api
This commit is contained in:
parent
97680efefb
commit
4bbe8acb5c
2 changed files with 1 additions and 18 deletions
|
@ -280,18 +280,7 @@ namespace MediaBrowser.Api.DefaultTheme
|
||||||
|
|
||||||
var seriesWithBackdrops = series.Where(i => i.BackdropImagePaths.Count > 0).ToList();
|
var seriesWithBackdrops = series.Where(i => i.BackdropImagePaths.Count > 0).ToList();
|
||||||
|
|
||||||
var view = new TvView
|
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))
|
|
||||||
};
|
|
||||||
|
|
||||||
SetFavoriteGenres(view, series, user);
|
SetFavoriteGenres(view, series, user);
|
||||||
SetFavoriteStudios(view, series, user);
|
SetFavoriteStudios(view, series, user);
|
||||||
|
|
|
@ -41,12 +41,6 @@ namespace MediaBrowser.Api.DefaultTheme
|
||||||
public List<ItemStub> RomanceItems { get; set; }
|
public List<ItemStub> RomanceItems { get; set; }
|
||||||
public List<ItemStub> ComedyItems { 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> FavoriteGenres { get; set; }
|
||||||
public List<ItemByNameInfo> FavoriteStudios { get; set; }
|
public List<ItemByNameInfo> FavoriteStudios { get; set; }
|
||||||
public List<string> SeriesIdsInProgress { get; set; }
|
public List<string> SeriesIdsInProgress { get; set; }
|
||||||
|
|
Loading…
Reference in a new issue