From a3774632a0848eda5cfce89d9a97364eacb8d1b6 Mon Sep 17 00:00:00 2001 From: marcelbuesing Date: Fri, 25 Sep 2020 16:11:30 +0200 Subject: [PATCH] Align PLAYER_EVENT naming --- src/player_event_handler.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/player_event_handler.rs b/src/player_event_handler.rs index 00b6c09f..464d877b 100644 --- a/src/player_event_handler.rs +++ b/src/player_event_handler.rs @@ -24,16 +24,16 @@ pub fn run_program_on_events(event: PlayerEvent, onevent: &str) -> Option { - env_vars.insert("PLAYER_EVENT", "change".to_string()); + env_vars.insert("PLAYER_EVENT", "changed".to_string()); 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("PLAYER_EVENT", "started".to_string()); env_vars.insert("TRACK_ID", track_id.to_base62()); } PlayerEvent::Stopped { track_id, .. } => { - env_vars.insert("PLAYER_EVENT", "stop".to_string()); + env_vars.insert("PLAYER_EVENT", "stopped".to_string()); env_vars.insert("TRACK_ID", track_id.to_base62()); } PlayerEvent::Playing {