diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-14 10:50:39 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-14 10:50:39 -0500 |
| commit | ce13ff95ad92fb2ee9448ac0a8d4054a6d043b14 (patch) | |
| tree | f16e1fa71256847fb23e17c86c31679b0e57dbb7 /MediaBrowser.Server.Implementations | |
| parent | eb42293901e15ef2f334390681ef71a84e247886 (diff) | |
support plot keywords
Diffstat (limited to 'MediaBrowser.Server.Implementations')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Dto/DtoService.cs | 14 |
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); |
