#!/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