Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0181seTYh8Bo6yc19Ba5p5bo
This was referenced Oct 17, 2026
Open
selmant
added a commit
to selmant/better-trakt
that referenced
this pull request
Oct 23, 2026
…known audio layouts jellyfin#322 Original author: @zotabee. Thanks for the contribution!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When FFmpeg reports no layout name, or one the switch doesn't know (e.g. "8 channels"), nothing is sent to Trakt, even though the channel count is known. Follow-up to #279.
In those cases the plugin now uses the most common layout for the count, as FFmpeg does: 1→1.0, 2→2.0, 3→2.1, 4→4.0, 5→5.0, 6→5.1, 7→6.1, 8→7.1. All of these are valid Trakt values (API docs; Trakt has no 6.0 or 7.0). Above 8 channels nothing is sent, because the count alone is ambiguous (10 could be 5.1.4 or 7.1.2).
Tested on my Jellyfin 12.1 server since 2026-10-18. Cabrini (2024) has an audio track with the layout "8 channels", so trakt.tv had no channel value for it. It now gets 7.1 (the Atmos part comes from #320):
Comparing my Trakt data exports from before and after, one more item got its channels this way: an episode whose mono PCM track has no layout name now has 1.0.
Builds with no warnings on its own and merges cleanly with #320, #321, #323, #329 and #342, which change the same file.