1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-04-26 09:23:23 -07:00

simplify ytg

This commit is contained in:
Connor Olding 2020-07-24 11:42:14 +02:00
parent 8b27c575d3
commit fec561d898

View File

@ -3,7 +3,6 @@
MPV_STREAM_FLAGS="--quiet --autofit=1280x720 --loop-playlist=no --no-resume-playback --no-sub \
--no-initial-audio-sync --mc=0.02 --autosync=30"
#--cache-secs=10 --cache-initial=1024 --cache-pause --cache-backbuffer=0 --cache-seek-min=2048"
_M_PRE_EMPH='equalizer=f=50:g=-10:width_type=o:w=4,equalizer=f=5000:g=+5:width_type=o:w=4'
_M_POST_EMPH='equalizer=f=50:g=+10:width_type=o:w=4,equalizer=f=5000:g=-5:width_type=o:w=4'
@ -85,11 +84,7 @@ yt() {
}
ytg() {
local vid="$1"; shift
if [[ ! -e "$vid" && "$(expr substr "$vid" 1 4)" != "http" ]]; then
vid="ytdl://$vid"
fi
mpv_stream "$vid" --ytdl-format=22/95/300/best "$@"
yt "$1" --ytdl-format=22/95/300/best "$@"
}
ytll() {