@@ -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
|
||||
|
||||
Reference in New Issue
Block a user