Skip to content

Conversation

@PatricLettau
Copy link
Contributor

Functional description

Fixing helper that converts WebVTT to SRT subtitle format for WebVTT files with a slightly uncommon format.

Reasoning

NRK was consistently using a format that the parser didn't handle appropriately, which broke most, if not all subtitles on NRK.

Technical description

According to https://www.w3.org/TR/webvtt1/#webvtt-file-body the WebVTT format allows arbitrary text after the "WEBVTT" keyword. With the previous parser implementation those lines where not ignored like they should.

@sonarqubecloud
Copy link

@basrieter
Copy link
Collaborator

Indeed. Thanks for the contribution!

@basrieter basrieter merged commit 1ac8707 into retrospect-addon:master Sep 21, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants