From 6888a3b203d1682b136e40143ad6cd63b0584e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sat, 26 Mar 2022 12:34:27 +0100 Subject: [PATCH] Migrate from youtube-dl to yt-dlp --- .config/rodolphe/.aliases | 8 +++++++- README.md | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/rodolphe/.aliases b/.config/rodolphe/.aliases index 3bf656a..98e59f2 100644 --- a/.config/rodolphe/.aliases +++ b/.config/rodolphe/.aliases @@ -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 diff --git a/README.md b/README.md index b89c24f..e31623b 100644 --- a/README.md +++ b/README.md @@ -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