commit 6322553d6b2eb1cc46c472e75759b8e4502bc9e2
parent 03badb3c92a2163b54eac4e0f9ba6651bcf7ead2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 24 Jun 2019 20:14:12 +0200
Add support for jspowerhour in comic script
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/.local/bin/comic b/.local/bin/comic
@@ -8,6 +8,10 @@ case "$url" in
f="$(curl -s --write-out "%{filename_effective}\n" -OL \
"$(curl -s -L "$url" | \
grep '.png' | sed 1q | sed 's/^.*https/https/;s/".*$//')")";;
+ *jspowerhour*)
+ f="$(curl -s --write-out "%{filename_effective}\n" -OL \
+ "$(curl -s -L "$url" | \
+ grep '.png' | sed 1q | sed 's/^.*src="//;s/" .*//;s|^|https:|')")";;
*xkcd*)
f="$(curl -s --write-out "%{filename_effective}\n" -OL \
"$(curl -s -L "$url" | \