aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExpctING <wang812584596@gmail.com>2026-04-25 21:10:47 +0800
committerExpctING <wang812584596@gmail.com>2026-04-25 21:10:47 +0800
commit1dd8541ed5832414c326f0c2662a899e1ec96259 (patch)
tree6fed2bbf7b7d95f51c8fc920136e2a7a8562ba51
parentd86a4d681572cdabc79efe47f5719d2761d84a3e (diff)
fix ci failed
Co-authored-by: Copilot <copilot@github.com>
-rw-r--r--MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs5
1 files changed, 5 insertions, 0 deletions
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];