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}" \