Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session can't updated when stream started #8

Open
dromicron opened this issue Jan 22, 2024 · 4 comments
Open

Session can't updated when stream started #8

dromicron opened this issue Jan 22, 2024 · 4 comments

Comments

@dromicron
Copy link

  • sxm-client version: last
  • Python version: 3.8
  • Operating System: Ubuntu 18.04

Description

I can launch the script, Authentication are done and stream start but after short delay the session expire and script fail to update it

INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:11:12 +0000] "GET /AAC_Data/8206/HLS_8206_256k_v3/8206_256k_1_012272641075_00372573_v3.aac HTTP/1.1" 200 315251 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:11:22 +0000] "GET /8206.m3u8 HTTP/1.1" 200 256751 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:11:22 +0000] "GET /AAC_Data/8206/HLS_8206_256k_v3/8206_256k_1_012272650826_00372574_v3.aac HTTP/1.1" 200 315251 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:11:31 +0000] "GET /AAC_Data/8206/HLS_8206_256k_v3/8206_256k_1_012272660578_00372575_v3.aac HTTP/1.1" 200 315235 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:11:41 +0000] "GET /8206.m3u8 HTTP/1.1" 200 256751 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:11:42 +0000] "GET /AAC_Data/8206/HLS_8206_256k_v3/8206_256k_1_012272670329_00372576_v3.aac HTTP/1.1" 200 315251 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:11:51 +0000] "GET /AAC_Data/8206/HLS_8206_256k_v3/8206_256k_1_012272680081_00372577_v3.aac HTTP/1.1" 200 315251 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:12:01 +0000] "GET /8206.m3u8 HTTP/1.1" 200 256751 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:12:01 +0000] "GET /AAC_Data/8206/HLS_8206_256k_v3/8206_256k_1_012272689848_00372578_v3.aac HTTP/1.1" 200 315251 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:12:10 +0000] "GET /AAC_Data/8206/HLS_8206_256k_v3/8206_256k_1_012272699599_00372579_v3.aac HTTP/1.1" 200 315251 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:12:20 +0000] "GET /8206.m3u8 HTTP/1.1" 200 256751 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:12:20 +0000] "GET /AAC_Data/8206/HLS_8206_256k_v3/8206_256k_1_012272709350_00372580_v3.aac HTTP/1.1" 200 315251 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:12:30 +0000] "GET /AAC_Data/8206/HLS_8206_256k_v3/8206_256k_1_012272719102_00372581_v3.aac HTTP/1.1" 200 315251 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/client.py:Session expired, logging in and authenticating
ERROR:/root/siriusxm/sxm-client/sxm/client.py:Failed to authenticate
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:12:40 +0000] "GET /8206.m3u8 HTTP/1.1" 503 172 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/client.py:Session expired, logging in and authenticating
ERROR:/root/siriusxm/sxm-client/sxm/client.py:Failed to authenticate
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:12:41 +0000] "GET /8206.m3u8 HTTP/1.1" 503 172 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/client.py:Session expired, logging in and authenticating
ERROR:/root/siriusxm/sxm-client/sxm/client.py:Failed to authenticate
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:12:41 +0000] "GET /8206.m3u8 HTTP/1.1" 503 172 "-" "(Windows NT 10.0; Win64; x64) PotPlayer/22.4.20"
INFO:/root/siriusxm/sxm-client/sxm/client.py:Session expired, logging in and authenticating
ERROR:/root/siriusxm/sxm-client/sxm/client.py:Failed to authenticate
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:12:42 +0000] "GET /8206.m3u8 HTTP/1.0" 503 172 "-" ""
INFO:/root/siriusxm/sxm-client/sxm/client.py:Session expired, logging in and authenticating
ERROR:/root/siriusxm/sxm-client/sxm/client.py:Failed to authenticate
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:13:05 +0000] "GET /8206.m3u8 HTTP/1.0" 503 172 "-" ""
INFO:/root/siriusxm/sxm-client/sxm/client.py:Session expired, logging in and authenticating
ERROR:/root/siriusxm/sxm-client/sxm/client.py:Failed to authenticate
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:13:28 +0000] "GET /8206.m3u8 HTTP/1.0" 503 172 "-" ""
INFO:/root/siriusxm/sxm-client/sxm/client.py:Session expired, logging in and authenticating
ERROR:/root/siriusxm/sxm-client/sxm/client.py:Failed to authenticate
INFO:/root/siriusxm/sxm-client/sxm/http.py: [22/Jan/2024:20:13:51 +0000] "GET /8206.m3u8 HTTP/1.0" 503 172 "-" ""
INFO:/root/siriusxm/sxm-client/sxm/client.py:Session expired, logging in and authenticating
ERROR:/root/siriusxm/sxm-client/sxm/client.py:Failed to authenticate

A Possible fix can be applied?
The problem started a few days ago, and it had always worked fine before.
@phofferkamp
Copy link

Experiencing the same

@cannondale99
Copy link

  • sxm-client version: lastest version
  • Python version: 3.8.10
  • Operating System: Ubuntu 20.04.6
  • Just noticed it stopped working yesterday (01/26/2024). Last time I was using it was early December 2023.

Similar error being received:
INFO:httpx:HTTP Request: POST https://player.siriusxm.com/rest/v2/experience/modules/modify/authentication "HTTP/1.1 200 OK"
ERROR:/home/siriusxm/sxm-client/sxm/client.py:Unable to authenticate because login failed

@cannondale99
Copy link

This resolved my problem.

Just read the Pull Request posted by phracker and changing line 162 in client.py solved my problem. Change line 162 from "SXMAUTHNEW" to "SXMDATA" as shown here - https://github.com/AngellusMortis/sxm-client/pull/6/files

@MiM-TMassey
Copy link

MiM-TMassey commented Jan 31, 2024

Thank you @cannondale99 for saving me some time digging into this. I have updated my fork to include this: https://github.com/MiM-TMassey/SiriusXM . It also includes a couple of other enhancements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants