[GH-ISSUE #771] Issues removing songs from library using edit_song_library_status #490

Closed
opened 2026-02-27 23:01:06 +03:00 by kerem · 2 comments
Owner

Originally created by @pranavbhandari24 on GitHub (May 12, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/771

Originally assigned to: @sgvictorino on GitHub.

I'm using edit_song_library_status to remove certain songs from the library using feedbackTokens, but they aren't removed

Steps to reproduce:

  1. Use get_library_songs(limit=1000, validate_responses=True) to get songs in the library.
  2. Extract track['feedbackTokens']['remove'] for tracks you want to remove
  3. Use edit_song_library_status(feedback_tokens) to remove songs from the library
  4. Use get_library_songs() again => The removed songs will also be returned

Thanks for looking into this. Let me know if I'm using the API incorrectly

Originally created by @pranavbhandari24 on GitHub (May 12, 2025). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/771 Originally assigned to: @sgvictorino on GitHub. I'm using `edit_song_library_status` to remove certain songs from the library using feedbackTokens, but they aren't removed Steps to reproduce: 1. Use `get_library_songs(limit=1000, validate_responses=True)` to get songs in the library. 2. Extract `track['feedbackTokens']['remove']` for tracks you want to remove 3. Use` edit_song_library_status(feedback_tokens)` to remove songs from the library 4. Use `get_library_songs()` again => The removed songs will also be returned Thanks for looking into this. Let me know if I'm using the API incorrectly
kerem 2026-02-27 23:01:06 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@apastel commented on GitHub (Aug 31, 2025):

I created a discussion item on this earlier this year: https://github.com/sigma67/ytmusicapi/discussions/746

It no longer adds/removes songs from the library. Instead it pins/unpins them from "Listen Again", likely due to a change by Google. The name and documentation for that function should probably be updated.

Unfortunately this means that there is not currently a way to add or remove an individual song to/from your library using the API. Well, technically you can remove a song from your library by using get_album to get the audioPlaylistId and then calling rate_playlist(audioPlaylistId, LikeStatus.INDIFFERENT), but I've encountered a library song that somehow is not part of an album, and so it can't be removed.

<!-- gh-comment-id:3240293283 --> @apastel commented on GitHub (Aug 31, 2025): I created a discussion item on this earlier this year: https://github.com/sigma67/ytmusicapi/discussions/746 It no longer adds/removes songs from the library. Instead it pins/unpins them from "Listen Again", likely due to a change by Google. The name and documentation for that function should probably be updated. Unfortunately this means that there is not currently a way to add or remove an individual song to/from your library using the API. Well, technically you can remove a song from your library by using `get_album` to get the `audioPlaylistId` and then calling `rate_playlist(audioPlaylistId, LikeStatus.INDIFFERENT)`, but I've encountered a library song that somehow is not part of an album, and so it can't be removed.
Author
Owner

@sgvictorino commented on GitHub (Sep 2, 2025):

I'm working on a PR to distinguish the "Save to library" and "Pin to Listen again" feedback tokens.

<!-- gh-comment-id:3245764245 --> @sgvictorino commented on GitHub (Sep 2, 2025): I'm working on a PR to distinguish the "Save to library" and "Pin to Listen again" feedback tokens.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#490
No description provided.