Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fetch VTT or SRT subtitles if only a transcript URL is provided #105

Open
wants to merge 1 commit into
base: arso/translations
Choose a base branch
from

Conversation

Frando
Copy link
Contributor

@Frando Frando commented Apr 23, 2024

This adds a feature to fetch subtitles if a Transcript has a subtitleUrl but no text. If this is the case, the subtitleUrl is fetched and parsed as either SRT or VTT. The parsed subtitles are concatenated without time markers and inserted into the text field of the transcript.

This PR includes both the implementation and a test.

Because #102 is still not merged unfortunately, this PR is based on #104 which builds upon the translations branch and adds recent changes from main.

Because tests are still broken in #102 and #104 this PR is also not green. The new test passes though.

@Frando Frando changed the base branch from main to arso/translations April 23, 2024 13:38
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.

1 participant