Music_Playlist
Music_Playlist copied to clipboard
Delete
Add functionality to delete playlists.
@Rohan-cod I would like to work on this
Go ahead @Vrindagupta6828 👍
@rohan-cod can you please guide me how to do it?
Apple music api currently only allows you to add songs to the playlist. They haven't added the functionality for PUT, DELETE, etc yet.
But the Spotify web api has this functionality. So you can implement the feature for it.
Refer this for more information.
Hey i am unable to solve the issue or find enough resources to learn.. @Rohan-cod can you please guide me
Hi @Vrindagupta6828, have a look at "create_playlist" and "get_playlist" in "spotify.py". The code to delete a playlist will be similar.
@Rohan-cod We have the same code in apple_music.py as well
Yes, but Apple Music API doesn't have the functionality to delete a playlist as I told you before. You have to implement it for Spotify only.
yes but how that's what i am asking you you said the code is similar to create playlist and get playlist. And do i have to implement it for spotify or apple_music?
Code will be similar because I have used the "requests" library. The only difference will be in the URL and the parameters. And once again, Apple Music API doesn't have the functionality to delete a playlist so there is no way of implementing the functionality for it. You have to implement the functionality for Spotify only. I hope it's clear now.