Implement following playlists

This commit is contained in:
KoffeinFlummi
2019-04-19 23:50:36 +02:00
parent e68ba60179
commit f320b953d6
3 changed files with 62 additions and 13 deletions

View File

@@ -564,6 +564,10 @@ impl Spotify {
self.api_with_retry(|api| api.current_user_saved_tracks_delete(ids.clone()))
}
pub fn user_playlist_follow_playlist(&self, owner_id: String, id: String) -> Option<()> {
self.api_with_retry(|api| api.user_playlist_follow_playlist(&owner_id, &id, true))
}
pub fn load(&self, track: &Track) {
info!("loading track: {:?}", track);
self.channel