#!/bin/sh echo "Extracting used YT ids..." for id in `grep -r "< yt" content/. | grep -o "\".*\"" | tr -d '"' | cut -d " " -f1 ` do echo "Processing $id"... wget --output-document "assets/ytcovers/$id.jpg" "https://i.ytimg.com/vi/$id/hqdefault.jpg" convert "assets/ytcovers/$id.jpg" "assets/partials/play-button.png" -gravity center -geometry 150x150+5+5 -composite "assets/ytcovers/$id.jpg" done