From da6e72bb8031192ada64814c207eeaa5afc5107f Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 12 Jan 2023 11:32:57 +0100 Subject: [PATCH] Fix MPV IPC socket path regex --- multimedia.controller.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multimedia.controller.sh b/multimedia.controller.sh index a87ac46..ac56533 100755 --- a/multimedia.controller.sh +++ b/multimedia.controller.sh @@ -24,7 +24,7 @@ export DEBUG PATH="${PATH}:${PROGDIR}" ## Default values for some vars -readonly MPV_PROC_REGEXP="mpv.*--input-ipc-server" +readonly MPV_PROC_REGEXP="^mpv.*--input-ipc-server=" readonly KODI_PROC_REGEXP="kodi.bin" readonly MPD_PROC_REGEXP="mpd.*systemd" @@ -155,7 +155,7 @@ main() { # {{{ ## Define all vars define_vars - ## If MPV with an IPS-socket is running {{{ + ## If MPV with an IPC-socket is running {{{ ### AND Send multimedia command to MPV sub-script ### AND exit 0 is_proc_running "${MPV_PROC_REGEXP}" \