Try to start Kodi only for localhost command

This commit is contained in:
gardouille 2023-02-26 20:07:20 +01:00
parent 9f9aae8403
commit 44722d1350
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 11 additions and 8 deletions

View File

@ -251,14 +251,17 @@ main() { # {{{
## Define all vars
define_vars
## If kodi is not running {{{
### AND Start it
### AND exit 0
is_proc_absent "${KODI_PROC_REGEXP}" \
&& debug_message "Start a new Kodi instance." \
&& kodi \
&& exit 0
## }}}
## For localhost
if [ "${KODI_HOST}" = "${KODI_HOST_DEFAULT}" ]; then
## If kodi is not running {{{
### AND Start it
### AND exit 0
is_proc_absent "${KODI_PROC_REGEXP}" \
&& debug_message "Start a new Kodi instance." \
&& kodi \
&& exit 0
## }}}
fi
## If the media should be paused {{{
if [ "${USER_MULTIMEDIA_COMMAND}" = "pause" ]; then