From 934584313eb1ce97ba26eba343dc1b3cd53f36dc Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 26 Jun 2013 10:59:54 -0400 Subject: [PATCH] save 3d format in xml --- MediaBrowser.Model/Entities/Video3DFormat.cs | 3 --- .../Savers/XmlSaverHelpers.cs | 21 +++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Model/Entities/Video3DFormat.cs b/MediaBrowser.Model/Entities/Video3DFormat.cs index 04475cf95a..064b02eddb 100644 --- a/MediaBrowser.Model/Entities/Video3DFormat.cs +++ b/MediaBrowser.Model/Entities/Video3DFormat.cs @@ -4,11 +4,8 @@ namespace MediaBrowser.Model.Entities public enum Video3DFormat { HalfSideBySide, - FullSideBySide, - FullTopAndBottom, - HalfTopAndBottom } } diff --git a/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs b/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs index 2ceb82d712..e6776af26d 100644 --- a/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs +++ b/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs @@ -425,6 +425,27 @@ namespace MediaBrowser.Providers.Savers builder.Append("" + SecurityElement.Escape(stream.IsDefault.ToString()) + ""); builder.Append("" + SecurityElement.Escape(stream.IsForced.ToString()) + ""); + var video = item as Video; + + if (video != null && video.Video3DFormat.HasValue) + { + switch (video.Video3DFormat.Value) + { + case Video3DFormat.FullSideBySide: + builder.Append("<3DFormat>FSBS"); + break; + case Video3DFormat.FullTopAndBottom: + builder.Append("<3DFormat>FTAB"); + break; + case Video3DFormat.HalfSideBySide: + builder.Append("<3DFormat>HSBS"); + break; + case Video3DFormat.HalfTopAndBottom: + builder.Append("<3DFormat>HTAB"); + break; + } + } + builder.Append(""); } else if (stream.Type == MediaStreamType.Audio)