[BASH] Use yt-dlp for mpv

This commit is contained in:
Gregory Trolliet 2021-10-14 19:56:04 +02:00
parent bab665082c
commit 52fd0adf78

View file

@ -19,5 +19,5 @@ alias myconfigfiles='git --git-dir=$HOME/.myconfigfiles.git --work-tree=$HOME'
alias revealjs='pandoc -s -t revealjs -V revealjs-url=../../lib/reveal.js --slide-level 2 --css ../../lib/css/style.css -o' alias revealjs='pandoc -s -t revealjs -V revealjs-url=../../lib/reveal.js --slide-level 2 --css ../../lib/css/style.css -o'
alias md2pdf='pandoc -V geometry:left=3cm,right=2.5cm,top=2.5cm,bottom=2.5cm -o' alias md2pdf='pandoc -V geometry:left=3cm,right=2.5cm,top=2.5cm,bottom=2.5cm -o'
alias mpvlow='mpv --ytdl-format=worstvideo[height\>=480]+bestaudio/480p/worst' alias mpvlow='mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480'
alias mpvhigh='mpv --ytdl-format=bestvideo[height\<=1080]+bestaudio/1080p/best' alias mpvhigh='mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080'