mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 23:36:00 +03:00
[GH-ISSUE #116] Adding playlists [Question] #83
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#83
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 @phirestalker on GitHub (Dec 7, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/116
When creating a playlist, will ytmusicapi inform me if the playlist already exists?
If not, what is the best way to check for an existing playlist before creating it. I could obviously use get_library_playlists and loop through, but there must be a more efficient way?
@sigma67 commented on GitHub (Dec 8, 2020):
There is no such thing as duplicate playlists. How would you determine that a new playlist is a duplicate? Based on the title? You can create two playlists with the same title, they would just have different playlist ids.
The API doesn't check for duplicates when creating new playlists, so yes, you'd have to do it yourself by using get_library_playlists beforehand.