Try to start Kodi only for localhost command
This commit is contained in:
parent
9f9aae8403
commit
44722d1350
|
@ -251,14 +251,17 @@ main() { # {{{
|
||||||
## Define all vars
|
## Define all vars
|
||||||
define_vars
|
define_vars
|
||||||
|
|
||||||
## If kodi is not running {{{
|
## For localhost
|
||||||
### AND Start it
|
if [ "${KODI_HOST}" = "${KODI_HOST_DEFAULT}" ]; then
|
||||||
### AND exit 0
|
## If kodi is not running {{{
|
||||||
is_proc_absent "${KODI_PROC_REGEXP}" \
|
### AND Start it
|
||||||
&& debug_message "Start a new Kodi instance." \
|
### AND exit 0
|
||||||
&& kodi \
|
is_proc_absent "${KODI_PROC_REGEXP}" \
|
||||||
&& exit 0
|
&& debug_message "Start a new Kodi instance." \
|
||||||
## }}}
|
&& kodi \
|
||||||
|
&& exit 0
|
||||||
|
## }}}
|
||||||
|
fi
|
||||||
|
|
||||||
## If the media should be paused {{{
|
## If the media should be paused {{{
|
||||||
if [ "${USER_MULTIMEDIA_COMMAND}" = "pause" ]; then
|
if [ "${USER_MULTIMEDIA_COMMAND}" = "pause" ]; then
|
||||||
|
|
Loading…
Reference in New Issue