Fix MPV IPC socket path regex

This commit is contained in:
Jeremy Gardais 2023-01-12 11:32:57 +01:00
parent 97b27287f5
commit da6e72bb80
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ export DEBUG
PATH="${PATH}:${PROGDIR}" PATH="${PATH}:${PROGDIR}"
## Default values for some vars ## 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 KODI_PROC_REGEXP="kodi.bin"
readonly MPD_PROC_REGEXP="mpd.*systemd" readonly MPD_PROC_REGEXP="mpd.*systemd"
@ -155,7 +155,7 @@ main() { # {{{
## Define all vars ## Define all vars
define_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 Send multimedia command to MPV sub-script
### AND exit 0 ### AND exit 0
is_proc_running "${MPV_PROC_REGEXP}" \ is_proc_running "${MPV_PROC_REGEXP}" \