mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
save chapters in xml
This commit is contained in:
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;
|
return info;
|
||||||
}
|
}
|
||||||
|
@ -636,22 +636,27 @@ namespace MediaBrowser.Providers.Savers
|
|||||||
{
|
{
|
||||||
var video = item as Video;
|
var video = item as Video;
|
||||||
|
|
||||||
if (video != null && video.Video3DFormat.HasValue)
|
if (video != null)
|
||||||
{
|
{
|
||||||
switch (video.Video3DFormat.Value)
|
AddChapters(video, builder, itemRepository);
|
||||||
|
|
||||||
|
if (video.Video3DFormat.HasValue)
|
||||||
{
|
{
|
||||||
case Video3DFormat.FullSideBySide:
|
switch (video.Video3DFormat.Value)
|
||||||
builder.Append("<Format3D>FSBS</Format3D>");
|
{
|
||||||
break;
|
case Video3DFormat.FullSideBySide:
|
||||||
case Video3DFormat.FullTopAndBottom:
|
builder.Append("<Format3D>FSBS</Format3D>");
|
||||||
builder.Append("<Format3D>FTAB</Format3D>");
|
break;
|
||||||
break;
|
case Video3DFormat.FullTopAndBottom:
|
||||||
case Video3DFormat.HalfSideBySide:
|
builder.Append("<Format3D>FTAB</Format3D>");
|
||||||
builder.Append("<Format3D>HSBS</Format3D>");
|
break;
|
||||||
break;
|
case Video3DFormat.HalfSideBySide:
|
||||||
case Video3DFormat.HalfTopAndBottom:
|
builder.Append("<Format3D>HSBS</Format3D>");
|
||||||
builder.Append("<Format3D>HTAB</Format3D>");
|
break;
|
||||||
break;
|
case Video3DFormat.HalfTopAndBottom:
|
||||||
|
builder.Append("<Format3D>HTAB</Format3D>");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user