[GH-ISSUE #106] Removing duplicate playlists #77

Closed
opened 2026-02-27 22:07:53 +03:00 by kerem · 1 comment
Owner

Originally created by @MisesEnForce on GitHub (Nov 16, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/106

As I kept using google play music until the last minute before shutdown (youtube music being so lame because of the lack of essential functions), modyfing existing playlist etc, I transfered several times my google music library to youtube music. Of course song weren't duplicated, but playlists were. Hence, I have hundreds (yes ...) of playlists that have 6 copies on my youtube music account.

Is it possible, with your API, to do the following :

  • getting the list of all playlists of my youtube music account
  • for each name in the set of names of playlists, keep only one playlist with that name

?

Originally created by @MisesEnForce on GitHub (Nov 16, 2020). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/106 As I kept using google play music until the last minute before shutdown (youtube music being so lame because of the lack of essential functions), modyfing existing playlist etc, I transfered several times my google music library to youtube music. Of course song weren't duplicated, but playlists were. Hence, I have hundreds (yes ...) of playlists that have 6 copies on my youtube music account. Is it possible, with your API, to do the following : - getting the list of all playlists of my youtube music account - for each name in the set of names of playlists, keep only one playlist with that name ?
kerem closed this issue 2026-02-27 22:07:54 +03:00
Author
Owner

@sigma67 commented on GitHub (Nov 17, 2020):

Yes, it's possible. Use

Also, please use Gitter for questions to avoid cluttering the issues: https://gitter.im/sigma67/ytmusicapi

<!-- gh-comment-id:728801224 --> @sigma67 commented on GitHub (Nov 17, 2020): Yes, it's possible. Use - https://ytmusicapi.readthedocs.io/en/latest/reference.html#ytmusicapi.YTMusic.get_library_playlists - do some Python logic to determine which ones you want to delete - https://ytmusicapi.readthedocs.io/en/latest/reference.html#ytmusicapi.YTMusic.delete_playlist Also, please use Gitter for questions to avoid cluttering the issues: https://gitter.im/sigma67/ytmusicapi
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#77
No description provided.