1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-10 11:39:04 -08: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 \ MPV_STREAM_FLAGS="--quiet --autofit=1280x720 --loop-playlist=no --no-resume-playback --no-sub \
--no-initial-audio-sync --mc=0.02 --autosync=30" --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_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' _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() { ytg() {
local vid="$1"; shift yt "$1" --ytdl-format=22/95/300/best "$@"
if [[ ! -e "$vid" && "$(expr substr "$vid" 1 4)" != "http" ]]; then
vid="ytdl://$vid"
fi
mpv_stream "$vid" --ytdl-format=22/95/300/best "$@"
} }
ytll() { ytll() {