From a9b8c5ca9458b3947b8c8dd228b9c4393346fb25 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 4 Jul 2022 10:37:07 +0200 Subject: [PATCH] Add stop command --- kodi.controller.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kodi.controller.sh b/kodi.controller.sh index 637e766..add07a7 100755 --- a/kodi.controller.sh +++ b/kodi.controller.sh @@ -40,13 +40,17 @@ EXAMPLES : - Start Kodi if not already running ${PROGNAME} - - Send default action (${USER_MULTIMEDIA_COMMAND_DEFAULT}) to Kodi instance + - Stop current current media + ${PROGNAME} --command stop + + - Send default action (${USER_MULTIMEDIA_COMMAND_DEFAULT}) to Kodi instance ${PROGNAME} OPTIONS : -c,--command Send a command to running Kodi. Available commands : * toggle, play, pause + * stop * next * previous * random, party, partymode @@ -96,6 +100,9 @@ define_vars() { # {{{ toggle|play|pause ) ## Toggle current play KODI_ACTION="PlayerControl(play)" ;; + stop ) ## Stop current play + KODI_ACTION="PlayerControl(stop)" + ;; next ) ## Next element in the playlist KODI_ACTION="PlayerControl(next)" ;;