mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #603] album information on playlist tracks getting wrongly assigned on collaborative playlists #412
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#412
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @elgerre on GitHub (Jun 17, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/603
Describe the bug
if a playlist has multiple users adding tracks to it, then the user who added a track to the playlist is returned in the "album" field.
The correct album information of the track can then be found in the "views" field instead.
To Reproduce
Steps to reproduce the behavior:
Additional context
see below two examples of unlisted playlists, one working fine, the other one having the described issue.
I was using ytmusicapi to import an entire playlist, that a friend and I were working on, into pandas dataframes to do some analytics just for fun and noticed the album names being just our usernames.
After further inspection I found the correct album name under "views" which confused me a little bit.
Then after trying out the code with another playlist(one without any collaboration) I realized, that it worked fine in that case, so I guess its the additional field that YT Music puts there.
This extra field also shows up in the browser once you invite other users to edit your playlist.
@sigma67 commented on GitHub (Jun 18, 2024):
Hi, this function is currently not tested in the context of collaborative playlists afaik.
Contribution welcome.
@czifumasa commented on GitHub (Jun 28, 2024):
For collaborative playlists,
flexColumnsinmusicResponsiveListItemRendererhave different order:0 - title
1 - contributing user
2 - artists
3 - album
For regular playlists it's:
0 - title
1 - artists
2 - album
For albums it's
0 - title
1 - artists if they are different than album artists, otherwise it's empty
2 - views
So index of flexColumns shouldn't be hardcoded as it currently is.
Maybe we could use
navigationEndpointto find the meaning of the column. There ispageType: 'MUSIC_PAGE_TYPE_ARTIST'if column contains artist andpageType: 'MUSIC_PAGE_TYPE_USER_CHANNEL'if column contains contributing user.@codeblech commented on GitHub (Jun 30, 2024):
I tried to reproduce the bug with my own non-collaborative and collaborative playlists. I had similar issues. Non-collaborative playlist worked fine.
But, for the collaborative playlist, the name of the person who added a song is returned in the "
artists" field (Yash Malik is my username). "album" field seems to be correct. "views" field shows the name of the channel on which song is uploaded on.here's a partial response by
get_playlsist()for a collaborative playlist:@sigma67 commented on GitHub (Jul 3, 2024):
fixed by #612
thanks @czifumasa !