diff options
| author | ExpctING <wang812584596@gmail.com> | 2026-04-25 03:30:55 +0800 |
|---|---|---|
| committer | ExpctING <wang812584596@gmail.com> | 2026-04-25 03:30:55 +0800 |
| commit | 857e7301686a4645e218020b8bf141143b84242e (patch) | |
| tree | e498fcb0c162a94e5a22a83a3552caa26d05a915 /Emby.Server.Implementations/Chapters/ChapterManager.cs | |
| parent | 461662f1ff6dff3c8c229850c1af37e188a88d0e (diff) | |
Fix dummy chapter handling for videos with a single chapter.
Diffstat (limited to 'Emby.Server.Implementations/Chapters/ChapterManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Chapters/ChapterManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Chapters/ChapterManager.cs b/Emby.Server.Implementations/Chapters/ChapterManager.cs index d09ed30ae3..a2d7d7d7fb 100644 --- a/Emby.Server.Implementations/Chapters/ChapterManager.cs +++ b/Emby.Server.Implementations/Chapters/ChapterManager.cs @@ -128,7 +128,7 @@ public class ChapterManager : IChapterManager var averageChapterDuration = GetAverageDurationBetweenChapters(chapters); var threshold = TimeSpan.FromSeconds(1).Ticks; - if (averageChapterDuration < threshold) + if (chapters.Count >= 2 && averageChapterDuration < threshold) { _logger.LogInformation("Skipping chapter image extraction for {Video} as the average chapter duration {AverageDuration} was lower than the minimum threshold {Threshold}", video.Name, averageChapterDuration, threshold); extractImages = false; |
