feat: add fine subtitle timing shift

This commit is contained in:
TTlaji committed 2026-06-03 14:26:29 +08:00
1 parent b66034c8a9
commit 93e06ca40a
3 files changed
+18 -2

No files matched your search

+5
View File
@@ -51,6 +51,11 @@ assert.equal(
"00:00:04.500 --> 00:00:08.500",
);
assert.equal(
shiftCueTimeRange("00:00:04.000 --> 00:00:08.000", 0.2),
"00:00:04.200 --> 00:00:08.200",
);
const shifted = shiftSubtitleCues([
{ timeRange: "00:00:04.000 --> 00:00:08.000", text: "Second line" },
], 1.25);