diff --git a/home/streamcrap b/home/streamcrap index 8b45bf0..a478feb 100644 --- a/home/streamcrap +++ b/home/streamcrap @@ -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() {