Skip to content

Commit

Permalink
Merge pull request #2 from MiM-TMassey/Update-SXM-Auth-to-SXMDATA
Browse files Browse the repository at this point in the history
SXM changed the name of their auth cookie again:  update to SXMDATA
  • Loading branch information
MiM-TMassey authored Jan 31, 2024
2 parents d72b38b + 6ecb874 commit 1351f89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This is forked from andrew0 with minimal changes:

* Updated SXM auth cookie name (so that the system actually authenticates now...)
* 20240131 And changed it again...
* Updated AWS cookie name (again, so that it actually authenticates again...)
* Added -e (--env) parameter to use SXM_USER and SXM_PASS environment variables to override username and password on command line
* Note: The username and password parameters are still required: just put something like "user" and "pass".
Expand Down
2 changes: 1 addition & 1 deletion sxm.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def log(x):
print('{} <SiriusXM>: {}'.format(datetime.datetime.now().strftime('%d.%b %Y %H:%M:%S'), x))

def is_logged_in(self):
return 'SXMAUTHNEW' in self.session.cookies
return 'SXMDATA' in self.session.cookies

def is_session_authenticated(self):
return 'AWSALB' in self.session.cookies and 'JSESSIONID' in self.session.cookies
Expand Down

0 comments on commit 1351f89

Please sign in to comment.