[GH-ISSUE #329] Question: Unclear if these are possible #258

Closed
opened 2026-02-27 22:08:51 +03:00 by kerem · 6 comments
Owner

Originally created by @rderidder-lda on GitHub (Dec 16, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/329

Interested in this library, but I'm having doubts Youtube actually allows what I'm interested in..

  • pull a list of all my disliked songs (from uploaded library)
  • delete those songs from my uploaded library
  • create my own playlist made up of all liked songs (vs the automated one they create)
  • pull a list / create a playlist of all my uploaded library songs that have not been rated yet

basic stuff to help reduce my massive uploaded library down to just liked songs, and find out which ones I need to rate still.
Thanks!

If you tube makes these things available in their API, I'd be willing to contribute to this project to make the above simpler to execute.
But again, i'm assuming they just don't support the filtering I'm looking for..
R

Originally created by @rderidder-lda on GitHub (Dec 16, 2022). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/329 Interested in this library, but I'm having doubts Youtube actually allows what I'm interested in.. - pull a list of all my disliked songs (from uploaded library) - delete those songs from my uploaded library - create my own playlist made up of all liked songs (vs the automated one they create) - pull a list / create a playlist of all my uploaded library songs that have not been rated yet basic stuff to help reduce my massive uploaded library down to just liked songs, and find out which ones I need to rate still. Thanks! If you tube makes these things available in their API, I'd be willing to contribute to this project to make the above simpler to execute. But again, i'm assuming they just don't support the filtering I'm looking for.. R
kerem 2026-02-27 22:08:51 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@sigma67 commented on GitHub (Dec 17, 2022):

  • you can't get disliked songs only (this is not possible in the web UI)
  • you can get all liked songs using get_liked_songs and add them to a playlist using create_playlist
  • you can get all your uploaded songs and filter out those that have not been rated
<!-- gh-comment-id:1356459928 --> @sigma67 commented on GitHub (Dec 17, 2022): - you can't get disliked songs only (this is not possible in the web UI) - you can get all liked songs using `get_liked_songs` and add them to a playlist using `create_playlist` - you can get all your uploaded songs and filter out those that have not been rated
Author
Owner

@rderidder-lda commented on GitHub (Dec 18, 2022):

thanks! i suppose then I could get the whole uploaded library listing, remove the liked ones, remove the unrated ones, and I would be left with the disliked ones that I could remove from the online library... depending how your third point works

<!-- gh-comment-id:1356888850 --> @rderidder-lda commented on GitHub (Dec 18, 2022): thanks! i suppose then I could get the whole uploaded library listing, remove the liked ones, remove the unrated ones, and I would be left with the disliked ones that I could remove from the online library... depending how your third point works
Author
Owner

@sigma67 commented on GitHub (Dec 19, 2022):

That is correct, for uploaded songs you can do it this way. Use get_library_upload_songs with limit=None.

likeStatus is what you're looking for.

<!-- gh-comment-id:1357249602 --> @sigma67 commented on GitHub (Dec 19, 2022): That is correct, for uploaded songs you can do it this way. Use [`get_library_upload_songs` with `limit=None`](https://ytmusicapi.readthedocs.io/en/stable/reference.html#ytmusicapi.YTMusic.get_library_upload_songs). `likeStatus` is what you're looking for.
Author
Owner

@rderidder-lda commented on GitHub (Jan 2, 2023):

Thanks for the help! the library is easy to use so far (once i figured out the cookie pasting part)

One weird thing is that the get_liked_songs function returned 8 songs when I set the limit to None... but when i grab the entire library and count the LIKED ones I get the proper count of > 1000.
Not sure if there is some other filter in place.. but no big deal for me - I'm just going to use the full library to get the liked ones.

<!-- gh-comment-id:1368618195 --> @rderidder-lda commented on GitHub (Jan 2, 2023): Thanks for the help! the library is easy to use so far (once i figured out the cookie pasting part) One weird thing is that the get_liked_songs function returned 8 songs when I set the limit to None... but when i grab the entire library and count the LIKED ones I get the proper count of > 1000. Not sure if there is some other filter in place.. but no big deal for me - I'm just going to use the full library to get the liked ones.
Author
Owner

@sigma67 commented on GitHub (Jan 2, 2023):

get_liked_songs returns the liked songs playlist here: https://music.youtube.com/playlist?list=LM

What's the count of that playlist for you? Are you sure you counted the number of tracks and not the number of keys in the dictionary?

<!-- gh-comment-id:1369194828 --> @sigma67 commented on GitHub (Jan 2, 2023): `get_liked_songs` returns the liked songs playlist here: https://music.youtube.com/playlist?list=LM What's the count of that playlist for you? Are you sure you counted the number of tracks and not the number of keys in the dictionary?
Author
Owner

@rderidder-lda commented on GitHub (Jan 2, 2023):

you are exactly correct... was not counting the tracks item. There are actually a few more in the liked playlist now, compared to counting the LIKED status on the full uploads... I'm guessing the liked playlist includes things that might not have been uploaded, so that makes sense.
Thanks!

<!-- gh-comment-id:1369198950 --> @rderidder-lda commented on GitHub (Jan 2, 2023): you are exactly correct... was not counting the tracks item. There are actually a few more in the liked playlist now, compared to counting the LIKED status on the full uploads... I'm guessing the liked playlist includes things that might not have been uploaded, so that makes sense. Thanks!
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#258
No description provided.