Add support for new Qobuz login flow#955
Open
mikelandzelo173 wants to merge 1 commit intonathom:devfrom
Open
Conversation
f9f38b0 to
81a803e
Compare
Author
|
I just tested my fix on Windows 11 and freshly installed all the necessary tools: git bash, Python, pip, playwright, and Chromium. I then checked out my branch and ran the script, and as expected, it guided me through the login process. Afterwards, my user ID and token were written to the config.ini file and reused on the next run. I can therefore confirm that the fix works on both macOS and Windows 11. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This MR fixes (#954) broken Qobuz login by replacing the legacy email/password flow with a token-first workflow that supports automatic refresh when tokens expire.
What Changed
use_auth_token = true) using:email_or_userid= Qobuzuser.idpassword_or_token= Qobuzuser_auth_tokenstreamrip/rip/qobuz_token_capture.py:https://play.qobuz.com/loginhttps://www.qobuz.com/api.json/0.2/user/loginuser.idanduser_auth_tokenextra=partnerwhen request payload is availableQobuzPrompter:Main.get_logged_in_client:AuthenticationError, rerun prompt/capture path instead of hard-failingstreamrip/config.tomlcomments now describe token authREADME.mddocuments auto-capture, Playwright setup, and manual fallbackDependency Changes
playwrighttopyproject.tomlpoetry.lockwith Playwright + transitive deps (greenlet,pyee) and lock metadata/group normalization from Poetry re-resolutionTests
tests/test_qobuz_auth_flow.pycoverage for:user_id,user_auth_token)Main