diff --git a/examples/play.rs b/examples/play.rs index 1209bf95..37011d02 100644 --- a/examples/play.rs +++ b/examples/play.rs @@ -2,7 +2,7 @@ use std::{env, process::exit}; use librespot::{ core::{ - authentication::Credentials, config::SessionConfig, session::Session, spotify_id::SpotifyId, + authentication::Credentials, config::SessionConfig, session::Session, spotify_id::{SpotifyId, SpotifyItemType}, }, playback::{ audio_backend, @@ -25,7 +25,8 @@ async fn main() { } 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();