Music_Playlist icon indicating copy to clipboard operation
Music_Playlist copied to clipboard

Delete

Open Rohan-cod opened this issue 5 years ago • 10 comments
trafficstars

Add functionality to delete playlists.

Rohan-cod avatar Oct 21 '20 15:10 Rohan-cod

@Rohan-cod I would like to work on this

Vrindagupta6828 avatar Dec 07 '20 07:12 Vrindagupta6828

Go ahead @Vrindagupta6828 👍

Rohan-cod avatar Dec 07 '20 07:12 Rohan-cod

@rohan-cod can you please guide me how to do it?

Vrindagupta6828 avatar Dec 07 '20 07:12 Vrindagupta6828

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.

Rohan-cod avatar Dec 07 '20 08:12 Rohan-cod

Hey i am unable to solve the issue or find enough resources to learn.. @Rohan-cod can you please guide me

Vrindagupta6828 avatar Dec 24 '20 03:12 Vrindagupta6828

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 avatar Dec 24 '20 11:12 Rohan-cod

@Rohan-cod We have the same code in apple_music.py as well

Vrindagupta6828 avatar Dec 25 '20 13:12 Vrindagupta6828

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.

Rohan-cod avatar Dec 25 '20 14:12 Rohan-cod

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?

Vrindagupta6828 avatar Dec 25 '20 14:12 Vrindagupta6828

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.

Rohan-cod avatar Dec 25 '20 14:12 Rohan-cod