implement deletion of playlists

closes #11
This commit is contained in:
Henrik Friedrichsen
2019-03-26 22:24:20 +01:00
parent 0e3c9fc504
commit 83a394790f
6 changed files with 57 additions and 3 deletions

View File

@@ -404,6 +404,11 @@ impl Spotify {
}
}
pub fn delete_playlist(&self, id: &str) -> bool {
self.api_with_retry(|api| api.user_playlist_unfollow(&self.user, id))
.is_some()
}
pub fn create_playlist(
&self,
name: &str,