danielvijge / SqueezeCloud

SoundCloud plugin for Squeezebox
GNU General Public License v2.0
25 stars 11 forks source link

Bitrate setting for Go+ Membership #41

Closed Wombat1986 closed 11 months ago

Wombat1986 commented 2 years ago

Hi, thanks for providing this easy-to-use plugin for LMS. Is it possible to set the bitrate for Go+ Membership? It always shows 128kbit MP3. Thanks in advance and Regards, Wombat

xvluny commented 11 months ago

I would also be very interested. Is there any progress on this?

danielvijge commented 11 months ago

Are you sure it is not already playing at a higher bitrate? The 128kbps, MP3 (SoundCloud) that is shown in the web interface is hardcoded, and might not be the actual bitrate that is playing. Clicking on the title in the web interface might shown you the actual bitrate (but not 100% sure about it).

I don't have a SoundCloud subscription, so no way to test it. But in the API there nothing for this. A request to is made to /tracks/TRACK_ID/stream, and this redirects to the actual streamable URL. I would suspect it's then up to SoundCloud to redirect members to a different URL that non-paying visitors.

xvluny commented 11 months ago

Hi, I have been unable to find the bitrate in the soundcloud web interface (might be that I am blind). However, I have been trying in a few tracks with squeezelite in debug mode.

The header when I begin streaming from soundcloud looks like this, stating 128 kbit HTTP/1.1 206 Partial Content Content-Type: audio/mpeg Content-Length: 3934666 Connection: close Date: Wed, 01 Nov 2023 09:26:35 GMT Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET Access-Control-Max-Age: 3000 Last-Modified: Wed, 16 Nov 2016 16:16:44 GMT ETag: "64fb556b8838eed61660a4c33d4c1853" x-amz-storage-class: INTELLIGENT_TIERING x-amz-server-side-encryption: AES256 x-amz-meta-bitrate: 128 x-amz-meta-duration: 245939 x-amz-meta-job: kGmmErlJoy3C Cache-Control: max-age=252460800 x-amz-version-id: sQiGiB8YBWMCsQ2RKai3MdBlZEWVpcvk Accept-Ranges: bytes Server: AmazonS3 Content-Range: bytes 0-3934665/3934666 X-Cache: Miss from cloudfront Via: 1.1 218c6128df18321f9758e53ccc351448.cloudfront.net (CloudFront) X-Amz-Cf-Pop: FRA60-P6 X-Amz-Cf-Id: NopdSV4I_MF8VVcYGCRk3HNIWhep5h3NTpdR_CXX1jWGAJdRprC-mw==

danielvijge commented 11 months ago

If SoundCloud doesn't already handle this automatically, and there is nothing in the API to trigger a higher bitrate for subscribers, there's not really anything I can do. Unless there is some documentation anywhere how to handle this, I have to close this issue as "not possible".