Migrate from youtube-dl to yt-dlp

This commit is contained in:
Rodolphe Bréard 2022-03-26 12:34:27 +01:00
parent a6549624a9
commit 6888a3b203
2 changed files with 8 additions and 2 deletions

View file

@ -18,7 +18,6 @@ hash clang-format 2>/dev/null && alias clang-format='clang-format -style="{Based
hash xscreensaver-command 2>/dev/null && alias lock='xscreensaver-command --lock'
hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"'
hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5'
hash youtube-dl 2>/dev/null && alias audio-dl='youtube-dl -x --audio-quality 0 --audio-format "vorbis"'
hash jmtpfs 2>/dev/null && alias mount_android='jmtpfs "/media/android"'
hash kitty 2>/dev/null && alias kitty_ssh='kitty +kitten ssh'
hash nvim 2>/dev/null && alias vim='nvim'
@ -57,3 +56,10 @@ if hash xr_3da 2>/dev/null; then
alias stalker_clear_sky='xr_3da -cs'
alias stalker_call_of_pripyat='xr_3da'
fi
if hash yt-dlp 2>/dev/null; then
alias audio-dl='yt-dlp --extract-audio --audio-quality 0 --audio-format "vorbis"'
alias youtube-dl='yt-dlp'
elif hash youtube-dl 2>/dev/null; then
alias audio-dl='youtube-dl -x --audio-quality 0 --audio-format "vorbis"'
fi

View file

@ -13,7 +13,7 @@ pacman -S skim
# Rust
pacman -S cargo-audit cargo-outdated cargo-release rustup
# CLI software
pacman -S bind exiv2 imagemagick mkcert ncdu nmap rsync shellcheck sqlmap youtube-dl
pacman -S bind exiv2 imagemagick mkcert ncdu nmap rsync shellcheck sqlmap yt-dlp
# WM
pacman -S i3status
pacman -S i3lock scrot