Differentiate between followed and created playlists

Fix #56
This commit is contained in:
KoffeinFlummi
2019-04-28 10:54:50 +02:00
parent 754d6d5c04
commit eed3edfa59
4 changed files with 20 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ use rspotify::spotify::model::search::{
SearchAlbums, SearchArtists, SearchPlaylists, SearchTracks,
};
use rspotify::spotify::model::track::{FullTrack, SavedTrack};
use rspotify::spotify::model::user::PrivateUser;
use failure::Error;
@@ -590,6 +591,10 @@ impl Spotify {
.map(|fa| fa.artists.iter().map(|a| a.into()).collect())
}
pub fn current_user(&self) -> Option<PrivateUser> {
self.api_with_retry(|api| api.current_user())
}
pub fn load(&self, track: &Track) {
info!("loading track: {:?}", track);
self.channel