save 3d format in xml

pull/702/head
Luke Pulverenti 12 years ago
parent 07e230c2eb
commit 934584313e

@ -4,11 +4,8 @@ namespace MediaBrowser.Model.Entities
public enum Video3DFormat
{
HalfSideBySide,
FullSideBySide,
FullTopAndBottom,
HalfTopAndBottom
}
}

@ -425,6 +425,27 @@ namespace MediaBrowser.Providers.Savers
builder.Append("<Default>" + SecurityElement.Escape(stream.IsDefault.ToString()) + "</Default>");
builder.Append("<Forced>" + SecurityElement.Escape(stream.IsForced.ToString()) + "</Forced>");
var video = item as Video;
if (video != null && video.Video3DFormat.HasValue)
{
switch (video.Video3DFormat.Value)
{
case Video3DFormat.FullSideBySide:
builder.Append("<3DFormat>FSBS</3DFormat>");
break;
case Video3DFormat.FullTopAndBottom:
builder.Append("<3DFormat>FTAB</3DFormat>");
break;
case Video3DFormat.HalfSideBySide:
builder.Append("<3DFormat>HSBS</3DFormat>");
break;
case Video3DFormat.HalfTopAndBottom:
builder.Append("<3DFormat>HTAB</3DFormat>");
break;
}
}
builder.Append("</Video>");
}
else if (stream.Type == MediaStreamType.Audio)

Loading…
Cancel
Save