aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Chapters
diff options
context:
space:
mode:
authorjakobkukla <jakob.kukla@gmail.com>2026-04-16 11:38:01 +0200
committerjakobkukla <jakob.kukla@gmail.com>2026-05-21 20:48:41 +0200
commit37350282cc18a977162dcf14fe9b6068d29d6edf (patch)
tree4f8d14a4ef9e96e092238fb521955ae389dbaf87 /Emby.Server.Implementations/Chapters
parente63bc1e27ceaab759fc2d2828115036d620fbd07 (diff)
Run tree-wide dotnet format
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)