From ccd281ce295e9a0a9c227545bc399e4ca845f8b0 Mon Sep 17 00:00:00 2001 From: Haven Hamelin Date: Thu, 26 Jun 2025 12:56:32 -0400 Subject: [PATCH] Added a space between verification_url and comma This fixes the situation in which the user ctrl + left clicks on the link in their terminal, and the comma is included as part of the code (which does not work). --- ytmusicapi/auth/oauth/token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytmusicapi/auth/oauth/token.py b/ytmusicapi/auth/oauth/token.py index 1e6bd2f..7e7dc48 100644 --- a/ytmusicapi/auth/oauth/token.py +++ b/ytmusicapi/auth/oauth/token.py @@ -126,7 +126,7 @@ class RefreshingToken(OAuthToken): url = f"{code['verification_url']}?user_code={code['user_code']}" if open_browser: webbrowser.open(url) - input(f"Go to {url}, finish the login flow and press Enter when done, Ctrl-C to abort") + input(f"Go to {url} , finish the login flow and press Enter when done, Ctrl-C to abort") raw_token = credentials.token_from_code(code["device_code"]) ref_token = cls(credentials=credentials, **raw_token) ref_token.update(ref_token.as_dict())