Yeah, it's a proper dead end unfortunately. I've just had a thorough look through that GitHub thread.
I use RopieeeXL in my bedroom system which has Spotify Connect integration through this library.
The technical issue is that Spotify locked lossless behind their PlayPlay DRM system, which uses white-box cryptography - similar to Widevine.
The encrypted files themselves are straightforward FLAC with standard AES-128-CTR encryption, but the decryption keys are wrapped in Spotify's proprietary code. Even if librespot developers could reverse-engineer the key request mechanism, they can't extract the actual keys without Spotify's private keys.
More significantly, Spotify sent direct communication to the librespot maintainers making it clear they cannot pursue development that circumvents these protections. That's why they've locked the thread and deleted all the technical discussion. They're protecting the project from DMCA takedown.
The silver lining (if you can call it that): Shannon protocol, that librespot uses, will likely remain active for years because there are millions of legacy Spotify Connect devices in the field that can't be firmware-updated to support PlayPlay. So lossy audio should continue working for a while, but lossless and any future premium features are permanently off the table for third-party implementations.
Basically, if you want lossless with Lyrion/LMS, you're stuck hoping Spotify officially supports it (unlikely) or running a native Spotify client and routing audio differently.
What could kill the old protocol faster and essentially brick existing devices:
- Security vulnerability in Shannon forcing immediate shutdown
- Spotify deciding the maintenance cost isn't worth it
- Pressure around DRM/licensing
This is yet another example that supports the argument to keep the digital software stuff out of our amps!