diff options
author | mms <michal@sapka.me> | 2024-02-08 21:21:01 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-02-08 21:34:26 +0100 |
commit | 18c9dcdb362f5cdbbfa5586466c9e7716d4f2330 (patch) | |
tree | c9f2f011550f7652f9f8e5c99f3ed2213d65d827 /extract_covers.sh | |
parent | 2089daeb88d9e1537d025ec5db675903208ad986 (diff) |
feat: owl sing 1
Diffstat (limited to 'extract_covers.sh')
-rwxr-xr-x | extract_covers.sh | 4 |
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 |