From ea5cdbbe9733387a4689cfc024658e61c79210ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Busse?= Date: Tue, 21 Jun 2022 19:29:12 +0200 Subject: [PATCH] Update tooltip parsing --- xkcdlock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xkcdlock b/xkcdlock index 1bc0dec..0f81144 100755 --- a/xkcdlock +++ b/xkcdlock @@ -213,7 +213,7 @@ xkcd_get_hotlink_url() { xkcd_get_img_tooltip() { local url url="https://xkcd.com/$1" - curl -sL "$url" | grep -A 1 '
' | awk -F "\"" '/src=/ {print $4}' | recode html..UTF8 + curl -sL https://xkcd.com/255 | grep '{{title text:' | awk -F'[:}]' '{ print $2 }' | recode html..UTF8 } xkcd_format_tooltip() {