aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Dto/DtoService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-20 11:48:23 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-20 11:48:23 -0400
commitf6769b73f2a82273e67689e8bc1c9d7b005ee866 (patch)
treea8a947f475e47632e61d0b91f421faa245f7198a /MediaBrowser.Server.Implementations/Dto/DtoService.cs
parentab207209b8138dccfea82d0fcd39866ff7e2fe9c (diff)
add MediaInfo to improve media analysis for video files
Diffstat (limited to 'MediaBrowser.Server.Implementations/Dto/DtoService.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Dto/DtoService.cs19
1 files changed, 11 insertions, 8 deletions
diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
index e35504dcf..4d4aa2484 100644
--- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs
+++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
@@ -1102,16 +1102,21 @@ namespace MediaBrowser.Server.Implementations.Dto
if (movie != null)
{
- var specialFeatureCount = movie.SpecialFeatureIds.Count;
-
- if (specialFeatureCount > 0)
+ if (fields.Contains(ItemFields.TmdbCollectionName))
{
- dto.SpecialFeatureCount = specialFeatureCount;
+ dto.TmdbCollectionName = movie.TmdbCollectionName;
}
+ }
- if (fields.Contains(ItemFields.TmdbCollectionName))
+ var hasSpecialFeatures = item as IHasSpecialFeatures;
+
+ if (hasSpecialFeatures != null)
+ {
+ var specialFeatureCount = hasSpecialFeatures.SpecialFeatureIds.Count;
+
+ if (specialFeatureCount > 0)
{
- dto.TmdbCollectionName = movie.TmdbCollectionName;
+ dto.SpecialFeatureCount = specialFeatureCount;
}
}
@@ -1146,8 +1151,6 @@ namespace MediaBrowser.Server.Implementations.Dto
dto.AirTime = series.AirTime;
dto.Status = series.Status;
- dto.SpecialFeatureCount = series.SpecialFeatureIds.Count;
-
dto.SeasonCount = series.SeasonCount;
if (fields.Contains(ItemFields.Settings))