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

Rewrite transcript logic to be more generic #4747

Merged
merged 3 commits into from
Jul 10, 2024

Conversation

syeopite
Copy link
Member

The transcript logic in Invidious was written specifically as a workaround for captions, and not transcripts as a feature.

This PR genericises the logic as so it can be used for actually implementing transcripts within Invidious' as well.

The most notable change is the added parsing of section headings when it was previously skipped over in favor of regular lines.

The changes in src/invidious/videos/transcript.cr should be reviewed as more of a rewrite than just changes.

@syeopite syeopite requested a review from a team as a code owner June 12, 2024 01:10
@syeopite syeopite requested review from SamantazFox and removed request for a team June 12, 2024 01:10
The transcript logic in Invidious was written specifically
as a workaround for captions, and not transcripts as a feature.

This commit genericises the logic a bit as so it can be used for
implementing transcripts within Invidious' API and UI as well.

The most notable change is the added parsing of section headings
when it was previously skipped over in favor of regular lines.
@syeopite syeopite force-pushed the improve-transcripts-logic branch from 42e64ca to 0224162 Compare June 12, 2024 01:23
@SamantazFox SamantazFox added need-testing This feature needs to be deployed and tested to see if it's working, and doesn't break something in-testing This feature has been deployed and is being tested and removed need-testing This feature needs to be deployed and tested to see if it's working, and doesn't break something labels Jun 15, 2024
@SamantazFox
Copy link
Member

Works well, both captions and storyboards have no issues.

@SamantazFox SamantazFox added ready and removed in-testing This feature has been deployed and is being tested labels Jul 9, 2024
@SamantazFox SamantazFox merged commit a56a724 into iv-org:master Jul 10, 2024
7 checks passed
@SamantazFox
Copy link
Member

Thanks for your work ^^

@syeopite syeopite deleted the improve-transcripts-logic branch July 10, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants