-
Notifications
You must be signed in to change notification settings - Fork 10
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
TypeError in Playlist.js #10
Comments
Hello. Please update package to version "dependencies": {
"ytmusic": "^0.0.9"
}, And then you should create API instance like this (for using without cookie): const api = new YTMUSIC() It should work, I've tested on my setup. I will specify this in docs soon. |
PS: I forgot to publish version, when I've fixed all bugs in october :) |
Thanks so much for the prompt reply! I'll take a look.
Does that mean I cannot create an API with cookies now, or does that simply mean I can choose to use or not to use cookies? |
You should be able to use both: anonymous requests and requests, which require a cookie (like creating a playlist). If anything goes wrong, feel free to open an issue or mention me here! |
Hmm, it feels like something isn't right here though: Lines 11 to 14 in 613a873
Shouldn't |
Yeah, looks odd to me too. For now you can specify blank cookie |
No worries! Please keep up the amazing work - one of the few still-maintained YouTube Music API out there and the only one with full cookies support AFAIC 😁 I have another question related to browser usage but I'll open another issue. Cheers. |
@vladdenisov I'm having an issue with using api.getPlaylists. I'm getting invalid args error. I've tried passing a blank string for userId along with cookie but still gives the error. I tried to search the docs for how to get a user id and authuser but couldn't find it |
When I tried to run
Node exited with an error:
Any ideas why?
The text was updated successfully, but these errors were encountered: