Fix comments

This commit is contained in:
oSumAtrIX 2021-10-17 05:14:24 +02:00
parent 9d78ea2aca
commit 5003386936
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -16,6 +16,7 @@ pub struct Spotify {
}
impl Spotify {
/// Create new instance
pub async fn new(
username: &str,
@ -26,7 +27,7 @@ impl Spotify {
// librespot
let credentials = Credentials::with_password(username, password);
let session = Session::connect(SessionConfig::default(), credentials, None).await?;
//rspoitfy
//aspotify
let credentials = ClientCredentials {
id: client_id.to_string(),
secret: client_secret.to_string(),
@ -145,6 +146,7 @@ impl Spotify {
}
}
/// Get all tracks from artist
pub async fn full_artist(&self, id: &str) -> Result<Vec<TrackSimplified>, SpotifyError> {
let mut items = vec![];
let mut offset = 0;
@ -171,7 +173,6 @@ impl Spotify {
}
}
impl Clone for Spotify {
fn clone(&self) -> Self {
Self {