summaryrefslogtreecommitdiff
path: root/extract_covers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extract_covers.sh')
-rwxr-xr-xextract_covers.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/extract_covers.sh b/extract_covers.sh
index a48fea6..b83f731 100755
--- a/extract_covers.sh
+++ b/extract_covers.sh
@@ -1,10 +1,10 @@
#!/bin/sh
echo "Extracting used YT ids..."
-for id in `grep -r "<youtube" content/. | grep -o "\".*\"" | tr -d '"' | cut -d " " -f1 `
+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://img.youtube.com/vi/$id/hqdefault.jpg"
+ 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