aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Dto
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-11-07 12:27:21 -0500
committerEric Reed <ebr@mediabrowser3.com>2013-11-07 12:27:21 -0500
commitbda3a301e70b8cdca8af06e6395701ec98a89e09 (patch)
treec32ec5d48a48a64bb9e06dd827da9fbc04ce6406 /MediaBrowser.Server.Implementations/Dto
parent63554bde5be929588e9073415ea811170264508b (diff)
parent01f1ed05b9a401939ccbd586e07951c144232608 (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Server.Implementations/Dto')
-rw-r--r--MediaBrowser.Server.Implementations/Dto/DtoService.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
index 19e19f8ea4..0104196e01 100644
--- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs
+++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
@@ -792,11 +792,15 @@ namespace MediaBrowser.Server.Implementations.Dto
dto.MediaType = item.MediaType;
dto.LocationType = item.LocationType;
- dto.CriticRating = item.CriticRating;
-
- if (fields.Contains(ItemFields.CriticRatingSummary))
+ var hasCriticRating = item as IHasCriticRating;
+ if (hasCriticRating != null)
{
- dto.CriticRatingSummary = item.CriticRatingSummary;
+ dto.CriticRating = hasCriticRating.CriticRating;
+
+ if (fields.Contains(ItemFields.CriticRatingSummary))
+ {
+ dto.CriticRatingSummary = hasCriticRating.CriticRatingSummary;
+ }
}
var localTrailerCount = item.LocalTrailerIds.Count;