-
Notifications
You must be signed in to change notification settings - Fork 159
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
Can't log in yt music #155
Comments
Looks like Youtube Music made some changes and you'll need a Google Cloud Project to get things working with Oauth. You can read about it here. Your best bet is to use browser auth.
def get_ytmusic() -> YTMusic:
"""
@@@
"""
return YTMusic("browser.json")
if not os.path.exists("oauth.json"):
print("ERROR: No file 'oauth.json' exists in the current directory.")
print(" Have you logged in to YTMusic? Run 'ytmusicapi oauth' to login")
sys.exit(1)
try:
return YTMusic("oauth.json")
except json.decoder.JSONDecodeError as e:
print(f"ERROR: JSON Decode error while trying start YTMusic: {e}")
print(" This typically means a problem with a 'oauth.json' file.")
print(" Have you logged in to YTMusic? Run 'ytmusicapi oauth' to login")
sys.exit(1)
Update:
Ref: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using the gui. When I click login it says "file not detected, login required" and it does open ytmusicapi.exe, but it doesn't provide a URL like the readme says, instead it just shows "Enter your Google Youtube Data API client ID". I might just be stupid, but I can't figure out what to do here.
The text was updated successfully, but these errors were encountered: