Files
arch-dotfiles/scripts/download-youtube-mp4.sh
2026-08-25 15:14:32 +02:00

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"