mirror of
https://github.com/notwa/rc
synced 2024-11-05 04:39:03 -08:00
simplify ytg
This commit is contained in:
parent
8b27c575d3
commit
fec561d898
1 changed files with 1 additions and 6 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue