From 39b37d344f4ae40d331a596d2425855a2dd13848 Mon Sep 17 00:00:00 2001 From: killahtree <34866740+wholivesinapineappleunderthesea@users.noreply.github.com> Date: Thu, 3 Nov 2022 20:10:49 -0400 Subject: [PATCH 1/2] Update play.rs --- examples/play.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/play.rs b/examples/play.rs index 1209bf95..3cb338a4 100644 --- a/examples/play.rs +++ b/examples/play.rs @@ -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(); From b15490714d600fd12fc7040ba012e9b4fdccd692 Mon Sep 17 00:00:00 2001 From: killahtree <34866740+wholivesinapineappleunderthesea@users.noreply.github.com> Date: Thu, 3 Nov 2022 20:21:39 -0400 Subject: [PATCH 2/2] Update play.rs --- examples/play.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/play.rs b/examples/play.rs index 3cb338a4..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,