danielvijge / SqueezeCloud

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

On certain systems, tracks do not play via SSL #5

Closed danielvijge closed 3 years ago

jwm commented 10 years ago

Hi Daniel, thanks for writing SqueezeCloud - I listen to a lot of SoundCloud playlists and mixes on my Squeezebox.

I noticed recently that SqueezeCloud tries to retrieve a track's audio via HTTP even when it gets an HTTPS scheme in a 302 redirect. I'm guessing it's from commit https://github.com/danielvijge/SqueezeCloud/commit/1b63544f732181289b88dc36e02e8ab310accaad .

Here's the log output:

[14-09-29 11:45:35.6391] Plugins::SqueezeCloud::ProtocolHandler::getNextTrack (195) Getting track from soundcloud for 161831726
[14-09-29 11:45:35.8211] Plugins::SqueezeCloud::ProtocolHandler::gotNextTrack (142) http://api.soundcloud.com/tracks/161831726/stream?client_id=112d35211af80d72c8ff470ab66400d8
[14-09-29 11:45:36.0382] Plugins::SqueezeCloud::ProtocolHandler::gotNextTrack (159) setting soundcloud_meta_161831726
[14-09-29 11:45:36.1691] Plugins::SqueezeCloud::ProtocolHandler::handleDirectError (317) Direct stream failed: http://soundcloud.hs.llnwd.net/HF3dOGkcEsmE.128.mp3?AWSAccessKeyId=AKIAJNIGGLK7XA7YZSNQ&Expires=1412010871&Signature=lQUg5BdRohAXKNqaeDGwgzXOQss%3D&e=1412010871&h=7179c1734152a46c9042996279bf2673 [400] HTTP/1.0 400 Bad Request

https://soundcloud.com/dieselboy/dieselboy-the-destroyer is the corresponding SoundCloud page. Did you try forcing http because https wasn't working on some clients? Is there anything I can do to help with this?

danielvijge commented 9 years ago

I think this message on the Squeezebox forum, explains the situation best: http://forums.slimdevices.com/showthread.php?92723-Soundcloud-plugin-for-squeezeserver&p=791261&viewfull=1#post791261

I did upload a test version, where peer verification can be disabled, but it does not seem to work for people affected by that problem. For HTTPS streaming, there is no solution yet. If you want to help, that would be great. But from what I understand, it's a LMS problems, not a plugin problem.

jwm commented 9 years ago

Gotcha. Thanks, Daniel. If it's an LMS problem, I don't really have time or energy to dive into it right now. I appreciate the explanation, though!

danielvijge commented 3 years ago

Solved by 94090bca16976aa000b141bc4e7a8ac50b907c11