automate/020_youtube-dl.sh

12 lines
335 B
Bash
Executable File

#!/usr/bin/env bash
apt install -y youtube-dl
## http://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