aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Chapters
diff options
context:
space:
mode:
authorDmitry Lyzo <ashephard0@gmail.com>2026-08-03 21:49:52 +0300
committerDmitry Lyzo <ashephard0@gmail.com>2026-08-04 16:50:13 +0300
commit27db9c886735e278f2b8b75e3213f28a4666247d (patch)
treed4f4ce5ae438b2cc2a8daa9dc41a3dad2ba0b22e /Emby.Server.Implementations/Chapters
parentcb131ecbb704041bbb776570e31ce2a146989593 (diff)
parent7fbc1ff8c0192b608a493324f2b7eafcf0a4383e (diff)
Merge remote-tracking branch 'origin/master' into is-stream-compatible
Diffstat (limited to 'Emby.Server.Implementations/Chapters')
-rw-r--r--Emby.Server.Implementations/Chapters/ChapterManager.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/Chapters/ChapterManager.cs b/Emby.Server.Implementations/Chapters/ChapterManager.cs
index 8a4721ce62..69cbe533c6 100644
--- a/Emby.Server.Implementations/Chapters/ChapterManager.cs
+++ b/Emby.Server.Implementations/Chapters/ChapterManager.cs
@@ -240,15 +240,15 @@ public class ChapterManager : IChapterManager
public void SaveChapters(BaseItem item, IReadOnlyList<ChapterInfo> chapters)
{
if (!Supports(item))
- {
- _logger.LogWarning("Attempted to save chapters for unsupported item type {Type}: {Name} ({Id})", item.GetType().Name, item.Name, item.Id);
- return;
- }
+ {
+ _logger.LogWarning("Attempted to save chapters for unsupported item type {Type}: {Name} ({Id})", item.GetType().Name, item.Name, item.Id);
+ return;
+ }
// Remove any chapters that are outside of the runtime of the item
var validChapters = chapters.Where(c => c.StartPositionTicks < item.RunTimeTicks).ToList();
_chapterRepository.SaveChapters(item.Id, validChapters);
-}
+ }
/// <inheritdoc />
public ChapterInfo? GetChapter(Guid baseItemId, int index)