NewPipeExtractor icon indicating copy to clipboard operation
NewPipeExtractor copied to clipboard

[Youtube] Add linked album for ytmusic searches

Open wispl opened this issue 1 year ago • 4 comments

Adds the linked album to the song when doing a ytmusic search. This is a draft and the current change is not visible. Some questions:

  1. To expose the linked album for use, is it alright to modify StreamInfoItem to add a new method called getPlaylist?
  2. Currently the code just returns the browseId of the album, is there any preferred structure to also return the name of the album as well?

The browseId currently does nothing, hopefully I can try to get the browse endpoint working for ytmusic. I also plan to add a method to get the linked artist as well.

wispl avatar Aug 05 '24 00:08 wispl

is this still in progress ?

Akash-Sriram avatar Jun 15 '25 00:06 Akash-Sriram

Kind of, it has been a while so I have to see if the changes even work now.

wispl avatar Jul 04 '25 19:07 wispl

I added a new method (getPlaylistId) to StreamInfoItem. This PR introduces an useful value for the playlistId only for youtube music searches which is the browseId.

wispl avatar Aug 25 '25 22:08 wispl

A better idea might be to replace the playlistId with the url of the playlist?

wispl avatar Aug 27 '25 16:08 wispl