Added ARGUMENTS to mp

This commit is contained in:
Jaidyn Lev 2019-01-26 17:20:15 -06:00
parent 6fe26e1b75
commit 65048635cd
2 changed files with 4 additions and 3 deletions

View File

@ -101,4 +101,4 @@ BORING STUFF
---------------------------------------- ----------------------------------------
License is CC-0 (though, "gendl" is GPLv3) License is CC-0 (though, "gendl" is GPLv3)
Author is Jenga Phoenix <jadedctrl@teknik.io> Author is Jenga Phoenix <jadedctrl@teknik.io>
Sauce is at https://git.eunichx.us/wyrics Sauce is at https://git.eunichx.us/wyrics.git

5
mp
View File

@ -9,6 +9,7 @@
# lisc: CC 0 # lisc: CC 0
######################################## ########################################
ARGUMENTS='--vo null --term-osd-bar'
trap "" 2 trap "" 2
@ -115,8 +116,8 @@ while test -n "$ITEMS"; do
local item="$(car "$ITEMS")" local item="$(car "$ITEMS")"
cat "${item}.txt" 2> /dev/null cat "${item}.txt" 2> /dev/null
echo "===$(discarded_items)/$(total_items)===" echo "===$(add $(discarded_items) 1)/$(total_items)==="
mpv "$item" eval "mpv ${ARGUMENTS} ${item}"
return=$? return=$?
handle_return "$return" handle_return "$return"