save chapters in xml

pull/702/head
Luke Pulverenti 11 years ago
parent 8eb74757d7
commit 4b585e3148

@ -255,7 +255,9 @@ namespace MediaBrowser.Providers.MediaInfo
}
}
info.StartPositionTicks = chapter.start / 100;
// Limit accuracy to milliseconds to match xml saving
var ms = Math.Round(TimeSpan.FromTicks(chapter.start / 100).TotalMilliseconds);
info.StartPositionTicks = TimeSpan.FromMilliseconds(ms).Ticks;
return info;
}

@ -636,7 +636,11 @@ namespace MediaBrowser.Providers.Savers
{
var video = item as Video;
if (video != null && video.Video3DFormat.HasValue)
if (video != null)
{
AddChapters(video, builder, itemRepository);
if (video.Video3DFormat.HasValue)
{
switch (video.Video3DFormat.Value)
{
@ -655,6 +659,7 @@ namespace MediaBrowser.Providers.Savers
}
}
}
}
public static void AddCollectionItems(Folder item, StringBuilder builder)
{

Loading…
Cancel
Save