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,7 +636,11 @@ namespace MediaBrowser.Providers.Savers
|
|||||||
{
|
{
|
||||||
var video = item as Video;
|
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)
|
switch (video.Video3DFormat.Value)
|
||||||
{
|
{
|
||||||
@ -655,6 +659,7 @@ namespace MediaBrowser.Providers.Savers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void AddCollectionItems(Folder item, StringBuilder builder)
|
public static void AddCollectionItems(Folder item, StringBuilder builder)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user