gatecrasher777 / ytcog

YouTube innertube class library for node-js; session, searches, channels, playlist, videos, comments and downloads.
MIT License
74 stars 14 forks source link

question/feat-req: youtube music support #31

Open redbrain opened 2 years ago

redbrain commented 2 years ago

hello gatecrasher, does YouTube Music also run on innertube? if so, could ytcog be modified to support ytmusic-specific features (for example, filtering music searches for songs, albums, artists, etc)?

gatecrasher777 commented 2 years ago

Sorry, I seemed to have missed your post.

As far as I am aware YouTube Music is a player built on top of the innertube, rather than there being any specific functionality inside the innertube api itself. All the calls are from url: https://music.youtube.com/ and seems to focus on music playlists, using the same type of calls as https://www.youtube.com/

It might be helpful to allow a change of domain in ytcog. Perhaps that would apply overall filter that limits results to music. But I would have to experiment.

redbrain commented 2 years ago

Thank you for the reply! My main goal is to be able to filter search results to include only songs and/or albums. I'll experiment with innertube requests to music.youtube.com and report any successes or errors. If you have spare time, it would be great if you could look into it as well.