aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-14 10:50:39 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-14 10:50:39 -0500
commitce13ff95ad92fb2ee9448ac0a8d4054a6d043b14 (patch)
treef16e1fa71256847fb23e17c86c31679b0e57dbb7 /MediaBrowser.Server.Implementations
parenteb42293901e15ef2f334390681ef71a84e247886 (diff)
support plot keywords
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/Dto/DtoService.cs14
1 files changed, 14 insertions, 0 deletions
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<string>();
+ }
+ }
+
if (fields.Contains(ItemFields.ProductionLocations))
{
SetProductionLocations(item, dto);