From 90695296b181df0ff6d3697691de5bb1daab88b3 Mon Sep 17 00:00:00 2001 From: glubsy Date: Wed, 26 May 2021 18:32:49 +0200 Subject: [PATCH] Fix shell script Params were not being passed to mpv correctly. --- mpv_wrapper.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mpv_wrapper.sh b/mpv_wrapper.sh index 528629e..6bccf4a 100755 --- a/mpv_wrapper.sh +++ b/mpv_wrapper.sh @@ -114,14 +114,14 @@ elif [[ "${PLAIN}" -eq 1 ]]; then #&& [[ ${#PARAMS[@]} -eq 1 ]]; then # PAR="${p}$'\n'${PAR}"; #done; # echo "DEBUG: PAR: ${PAR}"; - OPTIONS="--script-opts=limited_autoload-enabled=0"; - mpv ${OPTIONS} ${PARAMS[@]}; + OPTIONS="--script-opts=limited_autoload-enabled=0"; + mpv ${OPTIONS} "${PARAMS[@]}"; elif [[ "${LIMITED}" -eq 1 ]]; then - OPTIONS="--script-opts=limited_autoload-enabled=1"; - mpv ${OPTIONS} ${PARAMS[@]}; + OPTIONS="--script-opts=limited_autoload-enabled=1"; + mpv ${OPTIONS} "${PARAMS[@]}"; else - #echo "DEBUG:$FIND_CMD"; eval ${FIND_CMD}; - eval ${FIND_CMD} | mpv ${OPTIONS} --playlist=- --; + #echo "DEBUG:$FIND_CMD"; eval ${FIND_CMD}; + eval ${FIND_CMD} | mpv ${OPTIONS} --playlist=- --; fi