From 81e7c9b9d3678b3cb6aaaf47785e662287fd8480 Mon Sep 17 00:00:00 2001 From: ruben Date: Sun, 4 Nov 2018 18:41:33 +0100 Subject: [PATCH] Changed TRACK_ID from base16 to base62 so that it is equal with the official Spotify app --- src/player_event_handler.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/player_event_handler.rs b/src/player_event_handler.rs index 23c02313..1e682b98 100644 --- a/src/player_event_handler.rs +++ b/src/player_event_handler.rs @@ -21,16 +21,16 @@ pub fn run_program_on_events(event: PlayerEvent, onevent: &str) -> io::Result { env_vars.insert("PLAYER_EVENT", "change".to_string()); - env_vars.insert("OLD_TRACK_ID", old_track_id.to_base16()); - env_vars.insert("TRACK_ID", new_track_id.to_base16()); + env_vars.insert("OLD_TRACK_ID", old_track_id.to_base62()); + env_vars.insert("TRACK_ID", new_track_id.to_base62()); } PlayerEvent::Started { track_id } => { env_vars.insert("PLAYER_EVENT", "start".to_string()); - env_vars.insert("TRACK_ID", track_id.to_base16()); + env_vars.insert("TRACK_ID", track_id.to_base62()); } PlayerEvent::Stopped { track_id } => { env_vars.insert("PLAYER_EVENT", "stop".to_string()); - env_vars.insert("TRACK_ID", track_id.to_base16()); + env_vars.insert("TRACK_ID", track_id.to_base62()); } } run_program(onevent, env_vars)