aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorExpctING <wang812584596@gmail.com>2026-04-25 03:30:55 +0800
committerExpctING <wang812584596@gmail.com>2026-04-25 03:30:55 +0800
commit857e7301686a4645e218020b8bf141143b84242e (patch)
treee498fcb0c162a94e5a22a83a3552caa26d05a915 /tests
parent461662f1ff6dff3c8c229850c1af37e188a88d0e (diff)
Fix dummy chapter handling for videos with a single chapter.
Diffstat (limited to 'tests')
-rw-r--r--tests/Jellyfin.Providers.Tests/MediaInfo/FFProbeVideoInfoTests.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Jellyfin.Providers.Tests/MediaInfo/FFProbeVideoInfoTests.cs b/tests/Jellyfin.Providers.Tests/MediaInfo/FFProbeVideoInfoTests.cs
index 76922af8d5..7cb3e61724 100644
--- a/tests/Jellyfin.Providers.Tests/MediaInfo/FFProbeVideoInfoTests.cs
+++ b/tests/Jellyfin.Providers.Tests/MediaInfo/FFProbeVideoInfoTests.cs
@@ -45,8 +45,9 @@ public class FFProbeVideoInfoTests
[Theory]
[InlineData(null, 0)]
[InlineData(0L, 0)]
- [InlineData(1L, 0)]
- [InlineData(TimeSpan.TicksPerMinute * 5, 0)]
+ [InlineData(1L, 1)]
+ [InlineData(TimeSpan.TicksPerMinute * 3, 1)]
+ [InlineData(TimeSpan.TicksPerMinute * 5, 1)]
[InlineData((TimeSpan.TicksPerMinute * 5) + 1, 1)]
[InlineData(TimeSpan.TicksPerMinute * 50, 10)]
public void CreateDummyChapters_ValidRuntime_CorrectChaptersCount(long? runtime, int chaptersCount)