-
Notifications
You must be signed in to change notification settings - Fork 216
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
Improve consistency: artist and duration fields #215
Comments
Yes I think |
Thanks; works perfectly (authenticated and not). Any particular reason it returns |
It's a different parser. Usually the keys are derived from the JSON returned by the YouTube Music API. For the watch endpoint the key is |
Yeah, I know how annoying it is to try to consistently decode the stuff from YouTube. Any plans to go back and make your API more consistent?
I'm sure there are others. No biggie, it just seems that greater consistency would make using your API easier. Anyway, thanks for the package - I'm glad not to be scraping and parsing it myself anymore! Cheers |
Thanks for the feedback, it's probably a good idea to do that. Of course it would be at the expense of backwards compatibility. Regarding your bullets
|
I don't think I've checked, but the Reference suggests that I agree there's quite a bit of complexity around times! Rather than a time object, I'd suggest something like seconds or ms, as an integer - the most basic representation of the information. Let people turn it into whatever sort of object they like once the API has returned the value. But that's just a personal preference. You could probably avoid breaking backwards compatibility (mostly) by just picking a key that you like (say |
Some progress regarding the |
Looking good - it's very fiddly work, and breaks things, but I for one will appreciate the simplification it allows downstream. Cheers |
Hi,
Is there a method in the ytmusicapi equivalent to the
Search: list (related videos)
in the YouTube Data API (https://developers.google.com/youtube/v3/docs/search/list):I noticed that
YTMusic.get_artist
returns related artists, which is close but not for tracks. AreYTMusic.get_watch_playlist
andYTMusic.get_watch_playlist_shuffle
what I'm looking for? I'm going to try it, but the answer wasn't clear for me from the ReferenceCheers,
Nik
The text was updated successfully, but these errors were encountered: