added new item by name filters

This commit is contained in:
Luke Pulverenti
2014-01-14 15:03:35 -05:00
parent 3cde201190
commit f4b890f163
29 changed files with 155 additions and 95 deletions

View File

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

View File

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