mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Merge pull request #1070 from wholivesinapineappleunderthesea/dev
Fix play track item_type in the examples folder
This commit is contained in:
commit
2c20669a5c
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@ use std::{env, process::exit};
|
||||||
|
|
||||||
use librespot::{
|
use librespot::{
|
||||||
core::{
|
core::{
|
||||||
authentication::Credentials, config::SessionConfig, session::Session, spotify_id::SpotifyId,
|
authentication::Credentials, config::SessionConfig, session::Session, spotify_id::{SpotifyId, SpotifyItemType},
|
||||||
},
|
},
|
||||||
playback::{
|
playback::{
|
||||||
audio_backend,
|
audio_backend,
|
||||||
|
@ -25,7 +25,8 @@ async fn main() {
|
||||||
}
|
}
|
||||||
let credentials = Credentials::with_password(&args[1], &args[2]);
|
let credentials = Credentials::with_password(&args[1], &args[2]);
|
||||||
|
|
||||||
let track = SpotifyId::from_base62(&args[3]).unwrap();
|
let mut track = SpotifyId::from_base62(&args[3]).unwrap();
|
||||||
|
track.item_type = SpotifyItemType::Track;
|
||||||
|
|
||||||
let backend = audio_backend::find(None).unwrap();
|
let backend = audio_backend::find(None).unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue