mirror of
https://gitverse.ru/ot/DownOnSpot
synced 2025-12-19 18:04:16 +00:00
Fix comments
This commit is contained in:
parent
9d78ea2aca
commit
5003386936
1 changed files with 3 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue