fi
fi
if [ "$m" = y ]; then
- if [ "$eqt" = "$3" -o "$eqt" = "($3)" ]; then
+ if [ "$eqt" = "$3" -o "$eqt" = "($3)" -o "${eqt:0:2}" = "- " ]; then
matches=("${matches[@]}" "$file")
fi
fi
}
origargs=("$0" "$@")
-cmdline=(mplayer -fs -ass)
+cmdline=(mpv -fs)
debug=
unset pretend printfile
debug=y
;;
-t)
- cmdline=("${cmdline[@]}" -ao alsa:device=hw=3.7)
+ cmdline=("${cmdline[@]}" -ao 'alsa:device=[hw:3,7]')
DISPLAY=:1
chwp=y
;;
-f)
printfile=y
;;
+ -v)
+ cmdline=("${cmdline[@]}" -v)
+ ;;
--)
break
;;
if [ -n "$alang" ]; then
cmdline=("${cmdline[@]}" -alang "$alang")
elif [ -n "$aid" ]; then
- cmdline=("${cmdline[@]}" -aid "$aid")
+ cmdline=("${cmdline[@]}" -aid "$((aid + 1))")
fi
if [ -n "$slang" ]; then
cmdline=("${cmdline[@]}" -slang "$slang")
elif [ -n "$sid" ]; then
- cmdline=("${cmdline[@]}" -sid "$sid")
+ cmdline=("${cmdline[@]}" -sid "$((sid + 1))")
fi
if [ -n "$pretend" ]; then