Added support for more Audio fields

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-19 22:05:55 -04:00
parent e0acb3a74b
commit fd2ead1aff
7 changed files with 170 additions and 13 deletions

View File

@@ -40,6 +40,7 @@ namespace MediaBrowser.Api
dto.IsNew = item.IsRecentlyAdded(user);
dto.IndexNumber = item.IndexNumber;
dto.IsFolder = item.IsFolder;
dto.Language = item.Language;
dto.LocalTrailerCount = item.LocalTrailers == null ? 0 : item.LocalTrailers.Count();
dto.Name = item.Name;
dto.OfficialRating = item.OfficialRating;
@@ -58,6 +59,8 @@ namespace MediaBrowser.Api
dto.ParentId = item.Parent.Id;
}
dto.ParentIndexNumber = item.ParentIndexNumber;
// If there is no logo, indicate what parent has one in case the UI wants to allow inheritance
if (!dto.HasLogo)
{