automate/020_youtube-dl.sh

12 lines
340 B
Bash
Executable File

#!/usr/bin/env bash
apt-get -y install youtube-dl
## https://github.com/rg3/youtube-dl/blob/master/README.md#configuration
# Reduce maximum video quality
echo "-f 'bestvideo[height<=720]+bestaudio/best[height<=720]'" >> /etc/youtube-dl.conf
echo "-f 'bestvideo[height<=720]+bestaudio/best[height<=720]'" >> ~/.config/youtube-dl/config