SiriusXM icon indicating copy to clipboard operation
SiriusXM copied to clipboard

Is this still working?

Open clinton05 opened this issue 8 years ago • 12 comments

Has anyone tried this recently. Im having a few troubles.

clinton05 avatar Dec 08 '16 08:12 clinton05

Worked fine. Played well in mpv.

xelorz avatar Dec 30 '16 18:12 xelorz

Seems the API changed or something. I can't authenticate.

± |master U:1 ✗| → python server.py Received 403 Forbidden, renewing token Session expired, logging in Successfully logged in Session expired, logging in Successfully logged in Session expired, logging in Successfully logged in Session expired, logging in Successfully logged in Session expired, logging in Successfully logged in Session expired, logging in Successfully logged in Session expired, logging in Successfully logged in Session expired, logging in Successfully logged in Session expired, logging in Successfully logged in Session expired, logging in Successfully logged in Session expired, logging in Successfully logged in Session expired, logging in Successfully logged in Session expired, logging in Unable to login 127.0.0.1 - - [01/Apr/2018 18:03:50] "GET /34.m3u8 HTTP/1.1" 500 -

allanak avatar Apr 02 '18 01:04 allanak

try serious cast

clinton05 avatar Apr 02 '18 06:04 clinton05

@clinton05 do you actually have seriouscast working?

allanak avatar Apr 02 '18 16:04 allanak

@allanak I recently updated the script for the new API and hadn't gotten around to uploading it. I just pushed the new script, give that a try.

andrew0 avatar Apr 02 '18 18:04 andrew0

@andrew0 thanks for the commit but I'm still having problems. Is this working for you?

± |master ✓| → python3 sxm.py [email protected] mypw 9001 02.Apr 2018 12:07:56 <SiriusXM>: Unable to authenticate 02.Apr 2018 12:07:56 <SiriusXM>: Unable to get channel list 02.Apr 2018 12:07:56 <SiriusXM>: No channel for 22 127.0.0.1 - - [02/Apr/2018 12:07:56] "GET /22.m3u8 HTTP/1.1" 500 - 02.Apr 2018 12:07:56 <SiriusXM>: Unable to authenticate 02.Apr 2018 12:07:56 <SiriusXM>: Unable to get channel list 02.Apr 2018 12:07:56 <SiriusXM>: No channel for 22 127.0.0.1 - - [02/Apr/2018 12:07:56] "GET /22.m3u8 HTTP/1.0" 500 - 02.Apr 2018 12:07:56 <SiriusXM>: Unable to authenticate 02.Apr 2018 12:07:56 <SiriusXM>: Unable to get channel list 02.Apr 2018 12:07:56 <SiriusXM>: No channel for 22 127.0.0.1 - - [02/Apr/2018 12:07:56] "GET /22.m3u8 HTTP/1.0" 500 -

allanak avatar Apr 02 '18 19:04 allanak

@allanak Are you able to login using your username instead of email? When I try to login using my email it doesn't work even on the actual SiriusXM website.

Also, there's no channel with id 22. If you're trying to access pearl jam radio, it's 8370.m3u8. The channel names and IDs are in the readme.

andrew0 avatar Apr 02 '18 19:04 andrew0

Hmm, they are the same credentials I use for the player.siriusxm.com site so that should be ok. I'm no python expert but I might need to add some debugging to requests to see the json requests/responses or something. Thanks for the heads up on the channel numbering though.

allanak avatar Apr 02 '18 19:04 allanak

@allanak Looking at your console output it's actually not having trouble logging in, it's failing in the authenticate function, otherwise it would've said "Unable to authenticate because login failed." Can you add print(data) after line 126 and post the response?

andrew0 avatar Apr 02 '18 19:04 andrew0

Strangely it works now that I've added the print function. Thank you @andrew0 - can I buy you a beer?

allanak avatar Apr 02 '18 20:04 allanak

This has been working for me as well for several days. Today, when I attempted to play a station, I too received a message like allanak did above where it is failing the authenticate function. I added the print(data) function to my script and this was my output.

python3 sxm.py username password 8888 {'ModuleListResponse': {'messages': [{'message': 'Authentication Required', 'code': 201}, {'message': 'Eligible for Open Access Trial', 'code': 106}], 'status': 1}} 06.May 2018 13:26:49 <SiriusXM>: Unable to authenticate 06.May 2018 13:26:49 <SiriusXM>: Unable to get channel list 06.May 2018 13:26:49 <SiriusXM>: No channel for 90salternative

curzondax79 avatar May 06 '18 13:05 curzondax79

And I just waited a bit and it started to work again. Since nothing was different was done on my end, I wonder if SiriusXM was having some technical difficulties, especially since on the web end of the page, I did get a "we are recovering from a system error" message. Excellent script, and this script has restored SiriusXM functionality to my Squeezebox.

curzondax79 avatar May 06 '18 13:05 curzondax79