From 1dd8541ed5832414c326f0c2662a899e1ec96259 Mon Sep 17 00:00:00 2001 From: ExpctING Date: Sat, 25 Apr 2026 21:10:47 +0800 Subject: [PATCH] fix ci failed Co-authored-by: Copilot --- MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs index a41d03839f..33115901ef 100644 --- a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs +++ b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs @@ -621,6 +621,11 @@ namespace MediaBrowser.Providers.MediaInfo long dummyChapterDuration = TimeSpan.FromSeconds(_config.Configuration.DummyChapterDuration).Ticks; + if (runtime <= 0) + { + return []; + } + int chapterCount = Math.Max(1, (int)(runtime / dummyChapterDuration)); var chapters = new ChapterInfo[chapterCount];