Repository navigation
fix(api): keep subtitle cues continuous across export pages (#1472) - #1473
SamanPandey-in wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Reviewer's GuideAPIExtend paginated transcript exports so continuation pages retain the export window’s playback origin and cue numbering, and pass the next row through as lookahead for boundary timing.
ImplementationUpdate the VTT and SRT serializers to accept a starting cue number and optional next cue, keeping numbering and boundary durations continuous.
DocumentationDocument how clients follow export cursors and how paginated subtitle timing and cue numbering behave.
TestsAdd regression coverage for continuous paginated subtitle timing and numbering across formats, translations, and a filtered export window.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Keeping this PR in draft while #1464 and #1467 are still open. The current fix calculates the subtitle origin and cue position from live transcript rows. After #1464's snapshot export lands, continuations need to derive those values from the frozen rows so later commits cannot shift timing or numbering. I also need to reconcile #1467's changes to the same subtitle serializers and rerun the focused tests before marking this ready for review. |
Description
Paginated VTT and SRT exports restart at cue 1 and time zero on every page. The last cue on a page can also extend past the next page's first cue, so clients following X-Next-Cursor cannot assemble a continuous subtitle file.
This PR keeps cue timing and numbering aligned across pages. It uses the extra row already fetched for pagination to end a boundary cue at the next segment's start. A continuation reads the first matching segment and counts earlier matching cues in the same export window.
Related Issue
Closes #1472. Follow-up to #1464. This PR starts from the current dev branch and stays in draft while that snapshot export PR is open.
Changes Made
Testing
The live API returned VTT and SRT cues 1, 2, 3 at 00:00:00, 00:00:02, and 00:00:04. The first two cues end when the next starts.
Screenshots / Video
Short product walkthrough (9 seconds). It starts in VoxBento's stored transcript viewer, then follows the real export endpoint through three VTT pages and three SRT pages with URL-encoded cursors.
Stored transcript in the product:
VTT continuation:
SRT continuation:
Checklist
Additional Notes
@ArnavBallinCode @VineetRamshetty: I implemented the shared timeline proposed in #1472. I am happy to adjust the contract if you prefer standalone subtitle fragments.
This draft needs a compatibility pass after #1464 lands. Its opaque snapshot cursors should derive the origin and cue position from frozen rows, since counting live rows would drift after later commits. #1467 changes cue-duration handling in the same serializers, so I will reconcile that diff before requesting review.