Browse code

Added ARGUMENTS to mp

Jaidyn Lev authored on 2019-01-26 23:20:15
Showing 2 changed files
... ...
@@ -101,4 +101,4 @@ BORING STUFF
101 101
 ----------------------------------------
102 102
 License is CC-0 (though, "gendl" is GPLv3)
103 103
 Author is Jenga Phoenix <jadedctrl@teknik.io>
104
-Sauce is at https://git.eunichx.us/wyrics
104
+Sauce is at https://git.eunichx.us/wyrics.git
... ...
@@ -9,6 +9,7 @@
9 9
 # lisc: CC 0
10 10
 ########################################
11 11
 
12
+ARGUMENTS='--vo null --term-osd-bar'
12 13
 trap "" 2
13 14
 
14 15
 
... ...
@@ -115,8 +116,8 @@ while test -n "$ITEMS"; do
115 116
 	local item="$(car "$ITEMS")"
116 117
 
117 118
 	cat "${item}.txt" 2> /dev/null
118
-	echo "===$(discarded_items)/$(total_items)==="
119
-	mpv "$item"
119
+	echo "===$(add $(discarded_items) 1)/$(total_items)==="
120
+	eval "mpv ${ARGUMENTS} ${item}"
120 121
 
121 122
 	return=$?
122 123
 	handle_return "$return"