diff options
author | xyz <gky44px1999@gmail.com> | 2021-07-17 09:26:29 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-07-17 09:26:29 -0700 |
commit | d263540b1a2659ed65a7f1da1d7a4b9f91cd9753 (patch) | |
tree | 6f696fb00a87daa0ac5e683692025dadef210734 /.local | |
parent | 78ec367d1fe1dd5b08276d8d40c51d526fc4b6b0 (diff) |
ytdl option into mpvsel
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/mpvsel | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/mpvsel b/.local/bin/mpvsel index 4225bcc1..bfd7bc3a 100755 --- a/.local/bin/mpvsel +++ b/.local/bin/mpvsel @@ -5,7 +5,7 @@ url=$(xsel -ob) case $url in - *"youtu"*) mpv --fs --speed=2 --af=rubberband=pitch-scale=0.981818181818181 $url ;; + *"youtu"*) mpv --ytdl-format=bestvideo[height<=?900][fps<=?30][vcodec!=?vp9]+bestaudio/best --fs --speed=2 --af=rubberband=pitch-scale=0.981818181818181 $url ;; *"douyu"*) alacritty -e mpv $(basename $url | python $HOME/programs/real-url/douyu.py | tail -1) ;; *) echo "Clipboard url not supportted." >&2; exit 1 ;; esac |