mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-25 03:26:32 +00:00
added new item by name filters
This commit is contained in:
@@ -131,11 +131,10 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
{
|
||||
if (user == null)
|
||||
{
|
||||
//counts = item.ItemCounts;
|
||||
return;
|
||||
}
|
||||
|
||||
ItemByNameCounts counts = item.GetItemByNameCounts(user.Id) ?? new ItemByNameCounts();
|
||||
var counts = item.GetItemByNameCounts(user.Id) ?? new ItemByNameCounts();
|
||||
|
||||
dto.ChildCount = counts.TotalCount;
|
||||
|
||||
@@ -1244,7 +1243,7 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
/// <param name="dto">The dto.</param>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <returns>Task.</returns>
|
||||
private void AttachPrimaryImageAspectRatio(IItemDto dto, BaseItem item)
|
||||
public void AttachPrimaryImageAspectRatio(IItemDto dto, IHasImages item)
|
||||
{
|
||||
var path = item.PrimaryImagePath;
|
||||
|
||||
|
||||
@@ -1045,13 +1045,13 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
info.DayPattern = _tvDtoService.GetDayPattern(info.Days);
|
||||
|
||||
info.Name = program.Name;
|
||||
info.ChannelId = program.ChannelId;
|
||||
info.ChannelId = programDto.ChannelId;
|
||||
info.ChannelName = programDto.ChannelName;
|
||||
info.EndDate = program.EndDate;
|
||||
info.StartDate = program.StartDate;
|
||||
info.Name = program.Name;
|
||||
info.Overview = program.Overview;
|
||||
info.ProgramId = program.Id;
|
||||
info.ProgramId = programDto.Id;
|
||||
info.ExternalProgramId = programDto.ExternalId;
|
||||
|
||||
return info;
|
||||
|
||||
Reference in New Issue
Block a user