Update tooltip parsing

This commit is contained in:
Björn Busse 2022-06-21 19:29:12 +02:00
parent 50b510f179
commit ea5cdbbe97
1 changed files with 1 additions and 1 deletions

View File

@ -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 '<div id=\"comic\">' | 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() {