aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/ApiService.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-22 08:56:44 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-22 08:56:44 -0400
commitf2de85b5d9d0dcc3c922bc261d32df71870d6615 (patch)
treec86b11cc193b56ce2be17882b8399e7b492d74af /MediaBrowser.Api/ApiService.cs
parentfbf8cc833c441de8890998600be044296acfc783 (diff)
Added VideoInfo to DTOBaseItem
Diffstat (limited to 'MediaBrowser.Api/ApiService.cs')
-rw-r--r--MediaBrowser.Api/ApiService.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/MediaBrowser.Api/ApiService.cs b/MediaBrowser.Api/ApiService.cs
index 03ea97fd0..44ba98864 100644
--- a/MediaBrowser.Api/ApiService.cs
+++ b/MediaBrowser.Api/ApiService.cs
@@ -117,6 +117,22 @@ namespace MediaBrowser.Api
};
}
+ Video video = item as Video;
+
+ if (video != null)
+ {
+ dto.VideoInfo = new VideoInfo()
+ {
+ Height = video.Height,
+ Width = video.Width,
+ Codec = video.Codec,
+ VideoType = video.VideoType,
+ AudioStreams = video.AudioStreams,
+ Subtitles = video.Subtitles,
+ ScanType = video.ScanType
+ };
+ }
+
return dto;
}