Add keep-open flag for mpv

This commit is contained in:
rany
2021-06-06 14:57:37 +03:00
parent ed981ee6e5
commit fd77c42f74

View File

@@ -4,7 +4,7 @@ if [ "$1" == "stdin" ]
then then
stdin=$(cat) stdin=$(cat)
shift 1 shift 1
edge-tts -f <(printf '%s' "$stdin") | mpv - edge-tts -f <(printf '%s' "$stdin") | mpv --keep-open=yes -
else else
edge-tts "$@" | mpv - edge-tts "$@" | mpv --keep-open=yes -
fi fi