From ce13ff95ad92fb2ee9448ac0a8d4054a6d043b14 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 14 Jan 2014 10:50:39 -0500 Subject: support plot keywords --- MediaBrowser.Server.Implementations/Dto/DtoService.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'MediaBrowser.Server.Implementations') diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs index 59accba1f..2490aa249 100644 --- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs +++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs @@ -698,6 +698,20 @@ namespace MediaBrowser.Server.Implementations.Dto } } + if (fields.Contains(ItemFields.Keywords)) + { + var hasTags = item as IHasKeywords; + if (hasTags != null) + { + dto.Keywords = hasTags.Keywords; + } + + if (dto.Keywords == null) + { + dto.Keywords = new List(); + } + } + if (fields.Contains(ItemFields.ProductionLocations)) { SetProductionLocations(item, dto); -- cgit v1.2.3