Repository navigation
fix(jellycompat): serve the encoding config Jellyfin Web needs to draw ASS subtitles - #2857
Conversation
…w ASS subtitles Jellyfin Web creates its ASS/SSA renderer only after GET /System/Configuration/encoding resolves, and draws nothing when it fails. Answer that key with EnableFallbackFont false for any authenticated user; other keys stay 404, as in Jellyfin. Closes #2856 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 12 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
The Kodi add-on indexes EnableSubtitleExtraction from /System/Configuration/encoding before offering embedded text subtitles. Silo extracts those and serves them as External, so report true, matching Jellyfin's default. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
The router test covers the endpoint, but the PR says ASS/SSA rendering and Kodi subtitle selection have not been checked live. Please add before-and-after captures of ASS/SSA rendering in Jellyfin Web and embedded subtitle selection in Kodi, using the same media and naming the builds, or have a maintainer explicitly waive those captures. |
This comment has been minimized.
This comment has been minimized.
…ompat-encoding-config # Conflicts: # internal/jellycompat/handlers_system.go
|
Added live captures for Jellyfin Web 12.1 in Chrome on a dev sandbox, using the same episode (embedded ASS track) and the same seek points. On main b93c8f5, Two gaps remain, and both are noted in the PR body:
|
…ompat-encoding-config
Problem
Closes #2856
Related issue: N/A
Validation tasks: reaches #1246 C1 (not yet run)
Jellyfin Web shows no ASS/SSA subtitles on Silo. Before it starts its subtitle renderer, it loads
GET /System/Configuration/encoding, and Silo answered that with 404, so the renderer never started. This affects anyone watching anime or other styled subtitles in Jellyfin Web or an app that embeds it. This change answers that request the way Jellyfin does.In Jellyfin Web 12.1, Silo's default bundle, the renderer is created inside a
Promise.allthat includesgetNamedConfiguration('encoding')and has no rejection handler (src/plugins/htmlVideoPlayer/plugin.js:1445-1466). Silo already delivers the ASS track as External, serves the file, and lists font attachments for the renderer; that request was the missing piece.Approach
Authenticated
GET /System/Configuration/{key}now returns{"EnableFallbackFont":false,"EnableSubtitleExtraction":true}forencoding. Jellyfin Web reads onlyEnableFallbackFont, and Silo serves no fallback fonts. The Kodi add-on readsEnableSubtitleExtractionfrom the same response, with a hard index, before offering embedded text subtitles. Silo extracts those and serves them as External, sotrueis accurate and matches Jellyfin's default. With the old 404, both of the add-on's subtitle setup paths threw. Keys match case-insensitively, and any other key returns 404, as in Jellyfin. Outside its admin dashboard, Jellyfin Web 12.1 reads no other key exceptlivetv, which belongs to Live TV, a non-goal. The route sits in the session-auth group, so any signed-in profile can read it, which matches Jellyfin.docs/jellycompat-api.mdand the jellycompat route manifest list the new route. Native clients and/api/v2are unaffected.Validation
/System/Configuration/encodingreturns 404, the.assfile is never requested, and no subtitle appears. On this PR's head, the request returns 200, the.assfile is fetched, and the styled subtitle is drawn at the same seek points.go test ./internal/jellycompat/passes;make lint-changedreports 0 issues;make verify-local-pathspasses.EnableSubtitleExtractioncomes from its source. The full Compatibility layers (Jellyfin / Audiobookshelf) — Jellyfin compatibility #1246 C1 smoke matrix was not walked.Evidence: https://evidence.siloserver.org/r/silo-server/issue-2856/
Risks
A Jellyfin client that reads other
EncodingOptionsfields from this response would find them missing rather than getting a 404. Jellyfin's OpenAPI types the response as untyped JSON. Of the clients checked, Jellyfin Web 12.1 and the Kodi add-on read only the two fields served.Checklist
AI Disclosure
EnableSubtitleExtractionwas checked against the add-on source and is fixed in e7ba303.🤖 Generated with Claude Code