Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Plan on youtube music #609

Open
sJJdGG opened this issue Sep 1, 2018 · 7 comments
Open

Plan on youtube music #609

sJJdGG opened this issue Sep 1, 2018 · 7 comments

Comments

@sJJdGG
Copy link

sJJdGG commented Sep 1, 2018

As you may have heard google has released a new service called youtube music which has lots of similarity with play music. There are news that google eventually plans to replace play music with youtube music.

The good thing about youtube music right now is less authorization headache and new information like destinction between singles and albums.

would be really good this library supported it.

Just as a recommendation and knowing everyone's opinion.

@thebigmunch
Copy link
Contributor

They have also said they don't plan on replacing Google Music until they've implemented all the functionality into YouTube Music.

As far as implementing it in this library, I'd definitely say it should be in a separate library. You don't just slap in a completely different service into a library because it's technically a replacement for it.

Also, the mobile APIs are all done using protocol buffers. Adds an extra pain to using the mobile APIs, especially since you need to be using much older versions of Android/iOS to actually capture these calls now.

So, for someone implementing a YouTube Music library, they're left with using the HTTP API... oh wait, there isn't one, because Google. So, you're left in the same boat as the Webclient in gmusicapi. It can be a giant pain to keep it functioning. Also, this kinda goes against it being less of an authorization headache.

@simon-weber
Copy link
Owner

Yup, I don't have any immediate plans to look at youtube music. I suspect I will eventually so I can keep autoplaylists running, though by the time I get to that someone else may have already figured out the few calls I need.

I agree that it should probably be a different library. One case I'd consider adding support directly to gmusicapi would be if it turned out that the apis were very similar.

@thebigmunch
Copy link
Contributor

thebigmunch commented Sep 1, 2018

I agree that it should probably be a different library. One case I'd consider adding support directly to gmusicapi would be if it turned out that the apis were very similar.

They aren't terribly different to Google Music web calls at this point, though I consider that a negative. You do have to sift through a lot of cruft to figure out what's necessary and not.

Currently there's almost nothing to the functionality and less than a handful of calls.

@thebigmunch
Copy link
Contributor

thebigmunch commented Sep 1, 2018

PS

As I've already told a few people who have asked me if I would make a YouTube Music library, I'd have already made one if Google provided a proper web API or documentation like Spotify provides. Dunno if I'd make one before YouTube Music supported uploading your own songs, but I can't say I wouldn't for sure ^_^

@sigma67
Copy link

sigma67 commented Dec 27, 2019

I did a little research into the current state of YT Music API access.

While there is no dedicated API for YT Music currently, there is the YouTube Data API v3, which works to create playlists for YouTube Music. You can also search for entries from YouTube Music using the standard YouTube search by adding the term "Auto-generated by YouTube" to the search, which is present in all music-only tracks (with album cover art) generated by YouTube. So while it is a little hacky, playlist management is definitely possible right now. The main problem is the low YouTube API Quota, which makes it impossible to do anything useful (10,000 quota means a maximum of 100 searches per day)

@sigma67
Copy link

sigma67 commented Feb 18, 2020

I built a new API for YouTube Music: https://github.com/sigma67/ytmusicapi

Contributions are welcome!

@Suncatcher
Copy link

They have also said they don't plan on replacing Google Music until they've implemented all the functionality into YouTube Music.

This is no longer the case. Google officially announced it will shutdown GMusic by the end of the year. So it probably not worth investing more efforts into development of this API.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants