Files
arch-dotfiles/scripts/utilities/download-youtube-mp4.sh

10 lines
230 B
Bash
Executable File

#!/bin/bash
# Usage: ./download-youtube 'URL'
if [ -z "$1" ]; then
echo "Erreur : donne une URL YouTube en argument."
exit 1
fi
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]" -o "%(title)s.%(ext)s" "$1"