You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the image below for an example where the album chosen was Reputation by Taylor Swift (browse ID: MPREb_BdDqjcHkOwb) with the track being "...Ready For It?":
The album details are on the top level in title and artists keys, not in the individual tracks in the tracks key. I agree it would be more intuitive to include it with each track as well instead of putting None, it's just a limitation of how the parsing works currently
Hi @sigma67 - I know this is closed, but just wondering if instead of returning album as a str, have you considered returning it as a dict:
"album": {
"name": album title
"id": album browseId
}
Just means if the track gets separated from the album, it is easy to get it back again.
This would be consistent with how YTMusic.search returns song, YTMusic.get_home returns song quick pick, YTMusic.get_song_related returns You might also like items, YTMusic.get_watch_playlist and YTMusic.get_playlist return tracks.
The only other track/song where album is returned as a str is songs in YTMusic.get_artist - but that might be because for that result, there is no way to easily know the browseId for the album. I guess you'd have to find it in the albums returned by YTMusic.get_artist, by matching the name?
See the image below for an example where the album chosen was Reputation by Taylor Swift (browse ID: MPREb_BdDqjcHkOwb) with the track being "...Ready For It?":
Minimal working example:
I would expect it to contain "Taylor Swift" for the artist and "Reputation" for the album.
The text was updated successfully, but these errors were encountered: