blob: f5f83a95de301fd3d48d41c7a706e733099d5469 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
echo "Extracting used YT ids..."
for id in `grep -r "<youtube" content/. | grep -o "\".*\"" | tr -d '"' `
do
echo "Processing $id"...
wget --output-document "assets/ytcovers/$id.jpg" "https://img.youtube.com/vi/$id/hqdefault.jpg"
magick convert "assets/ytcovers/$id.jpg" "assets/partials/play-button.png" -gravity center -geometry 150x150+5+5 -composite "assets/ytcovers/$id.jpg"
done
|