mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
[PR #8087] [MERGED] feat: make subtitleeditparser generic #11436
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#11436
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/8087
Author: @cvium
Created: 7/8/2022
Status: ✅ Merged
Merged: 8/1/2022
Merged by: @Bond-009
Base:
release-10.8.z← Head:generic_subtitleparser📝 Commits (9)
1db7483feat: make subtitleeditparser generic78f4374loop over all compatible SubtitleFormatsdbfa0f3fix unsupported126da94use reflection to get all subtitle formats without causing libse configuration loading3b69f38fix testsb0b4068Update MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.csf2c7bccUpdate MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.csa380153remove redundant null checkd258a87Update MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.cs📊 Changes
10 files changed (+98 additions, -119 deletions)
View changed files
📝
Emby.Server.Implementations/ApplicationHost.cs(+3 -1)➖
MediaBrowser.MediaEncoding/Subtitles/AssParser.cs(+0 -19)📝
MediaBrowser.MediaEncoding/Subtitles/ISubtitleParser.cs(+9 -3)➖
MediaBrowser.MediaEncoding/Subtitles/SrtParser.cs(+0 -19)➖
MediaBrowser.MediaEncoding/Subtitles/SsaParser.cs(+0 -19)📝
MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.cs(+72 -13)📝
MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs(+8 -39)📝
tests/Jellyfin.MediaEncoding.Tests/Subtitles/AssParserTests.cs(+1 -1)📝
tests/Jellyfin.MediaEncoding.Tests/Subtitles/SrtParserTests.cs(+2 -2)📝
tests/Jellyfin.MediaEncoding.Tests/Subtitles/SsaParserTests.cs(+3 -3)📄 Description
Changes
Instead of hard coding and wrapping every
SubtitleFormatsub class, this introduces a generic parser that tries all availableSubtitleFormatbased on extension.Issues
Supercedes #8086
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.