Skip to content

Commit

Permalink
Fix shell script
Browse files Browse the repository at this point in the history
Params were not being passed to mpv correctly.
  • Loading branch information
glubsy committed May 26, 2021
1 parent 029e495 commit 9069529
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mpv_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9069529

Please sign in to comment.