diff options
| author | KGT1 <kilian.gamn@gmx.de> | 2026-05-05 14:12:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-05 14:12:39 +0200 |
| commit | f8ff13c8f491947a652491afa6dd407ee08980e7 (patch) | |
| tree | f4fd37ed35c9ad9ae92465fd98d1de89a75ede4c /Emby.Server.Implementations/Chapters | |
| parent | 4464b2e2ed9d8cc3f4c520ee76dfedac3557cf0d (diff) | |
| parent | ec04313317bed62728b059108cd232e9744f6354 (diff) | |
Merge branch 'jellyfin:master' into removeGenericConfigurationEndpoint
Diffstat (limited to 'Emby.Server.Implementations/Chapters')
| -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 79ab29b87c..8a4721ce62 100644 --- a/Emby.Server.Implementations/Chapters/ChapterManager.cs +++ b/Emby.Server.Implementations/Chapters/ChapterManager.cs @@ -129,7 +129,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; |
