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

Fix srt newline parsing, revert subtitle alignment back to left align #1688

Merged
merged 1 commit into from
May 5, 2022

Conversation

mueslimak3r
Copy link
Member

Changes

  • add an additional search and replace to convert newlines into <br>. Subtitles that use line-feed only (\n) can now be parsed in addition to CRLF (\r + \n), which was previously the only format parsed.
  • removed gravity="center" for the subtitle TextView

Issues

Notes

  • I have tried a few things including adding an AlignmentSpan to get the PaddedBackgroundSpan to draw its background around the centered text. Unfortunately, this didn't work. Working with spans is a pain, and it seems like a solution that allows for centered text and functional backgrounds might require a custom span.

@nielsvanvelzen nielsvanvelzen merged commit 408f607 into jellyfin:master May 5, 2022
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.

Background subtitles left align
2 participants