Repository navigation
Conversation
Plex answered HTTP 500 for newly added FLAC albums. Its log showed why:
for a /library/parts request it checks the file against the client's
direct-play profile, cliamp sends none, and the generic profile has no
FLAC over HTTP ("No direct play music profile exists for protocol
http, with container flac").
Request parts with download=1, as Plexamp does, so Plex serves the
original file without a profile check.
Verified with make check (gofmt, go vet, go test ./...) and staticcheck.
The new test fails without the fix. On the live server a part answered
500 before and 206 with download=1 (2026-10-27).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Split from #699, as asked there.
Problem
Plex answered HTTP 500 for FLAC parts whose audio stream it had analyzed. Its log said "No direct play music profile exists for protocol http, with container flac": for a
/library/partsrequest Plex checks the file against the client's direct-play profile, cliamp sends none, and the generic profile has no FLAC over HTTP.Fix
StreamURLaddsdownload=1, as Plexamp does. Plex then serves the original file without the profile check.Verification
make checkandstaticcheckpass.TestStreamURLPlaysAnalyzedFLACfails without the fix.download=1and 206 with it.download=1. The parameter changes nothing for those requests.🤖 Generated with Claude Code
Summary by CodeRabbit