1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-14 04:05:16 +00:00

Only round end_time of removal segments

We don't actually care if we chop out a segment after a keyframe,
just that the next segment should start with one. So only the
end_time requires rounding, not the start_time.
This commit is contained in:
Quantum
2024-12-26 03:22:18 -05:00
parent cfc29f62c8
commit a9abae0a92
2 changed files with 1 additions and 6 deletions

View File

@@ -567,7 +567,7 @@ class TestModifyChaptersPP(unittest.TestCase):
])
self.assertEqual(chapters, [
{'start_time': 0, 'end_time': 2},
{'start_time': 3, 'end_time': 5, 'remove': True},
{'start_time': 2, 'end_time': 5, 'remove': True},
{'start_time': 6, 'end_time': 10, 'remove': False},
])