mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 23:36:00 +03:00
[GH-ISSUE #453] Can't remove tracks from Liked Music playlist #339
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#339
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 @adamhl8 on GitHub (Oct 9, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/453
I'm trying to remove all the tracks from my Liked Music playlist. Nothing in that playlist is liked (i.e. I set all tracks to
INDIFFERENT), but for some reason some tracks have been manually added.I tried this:
Which makes sense, because for some reason when you get the
LMplaylist it never returnssetVideoId. (Also, if I use browser auth the response is exactly the same.)So as a workaround, I copied all tracks from
LMto another playlist and tried this (the track dicts now includesetVideoId):Seems like YouTube might have some weird rules around modifying
LMbut I also might be doing something wrong.@sigma67 commented on GitHub (Oct 9, 2023):
That's not how it works, you can't do it that way on the Web UI either (well I guess you can, but under the hood it just does an "unlike").
You have to remote the the track's like using
rate_song.@adamhl8 commented on GitHub (Oct 9, 2023):
I did set all tracks to
INDIFFERENTusingrate_song. However there were still tracks leftover inLMdespite none of them being liked. I can manually remove them by clicking the three dots and clicking "Remove from playlist". However, I opened this issue because it doesn't seem possible to remove these tracks using this library.@sigma67 commented on GitHub (Oct 9, 2023):
Ok that sounds like a bit of an edge case.
@adamhl8 commented on GitHub (Oct 9, 2023):
Yes
I'm not really sure how I ended up with unliked tracks in my liked music playlist in the first place, but no I'm not able to reproduce that.
Yes, if I unlike them (or rather, like and then unlike them), they still remain in
LM.I'd imagine this is some weird holdover from an older version of YTM. Probably not worth fixing but hopefully what I posted helps someone if they run into the same thing.
@sigma67 commented on GitHub (Oct 9, 2023):
But does that remain if you refresh? I would doubt it.
This is mostly a web frontend issue I think, the tracks are not removed immediately after unliking.
And the older tracks may indeed be a holdover, but it's still strange behavior. Let me know if you do find a way to reproduce.
@beanallergy commented on GitHub (Jun 30, 2024):
I also saw similar issues when using
rate_song, my code:Then I would get this result:
I go to the web app and remove some of the problematic tracks manually (3 dots -> "Remove from playlist") and check Developer Tools - Network - Request. Turns out the request payload from web client to
/like/removelikeAPI would actually have a differenttarget.videoIdfrom the one I got from get_playlist! This is probably related to the "weird holdover" @adamhl8 mentioned above.Anyway I don't think this can be fixed in the scope of this repo, but good to know somebody else has experienced the same thing.
Thanks @sigma67 for this API, very useful and easy to get started!
@apastel commented on GitHub (Jul 22, 2024):
I also noticed the issue with tracks in the "Liked Music" playlist appearing there even though they don't have a Thumbs Up or Down rating. They are songs that I've liked on YouTube. To make them go away, go to your settings within YouTube Music and disable "Show your liked music from YouTube"