diff options
author | Phillip Berndt <pberndt@spline.de> | 2015-05-20 09:30:59 +0200 |
---|---|---|
committer | Phillip Berndt <pberndt@spline.de> | 2015-05-20 09:32:52 +0200 |
commit | 4271467f2d05fa36baab6bd6e17316f280a2fc5e (patch) | |
tree | 8aaeee03d77403511ea604b7cdc41ff073c4921d | |
parent | 162939335b50237b2e4e7f49fde6692acc8f022f (diff) | |
download | comics-4271467f2d05fa36baab6bd6e17316f280a2fc5e.tar.gz comics-4271467f2d05fa36baab6bd6e17316f280a2fc5e.tar.bz2 comics-4271467f2d05fa36baab6bd6e17316f280a2fc5e.zip |
Fixed xkcd alt/title
-rwxr-xr-x | bin/comics/xkcd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/comics/xkcd b/bin/comics/xkcd index 78c81b3..efc0d6c 100755 --- a/bin/comics/xkcd +++ b/bin/comics/xkcd @@ -29,7 +29,7 @@ if [ -n "$url" ]; then imgname=$(echo "$url" | tr '/' '\n' | tail -1) # get additional information - img_tag=$(grep -A2 "src=\"${url}" index.html | sed 'N;N;s/.*\(<img [^>]\+>\).*/\1/') + img_tag=$(grep -A2 "src=\"${url:5}" index.html | sed 'N;N;s/.*\(<img [^>]\+>\).*/\1/') alt=$(sed 's/.*title="\([^"]*\)".*/\1/'<<< $img_tag) title=$(sed 's/.*alt="\([^"]*\)".*/\1/'<<< $img_tag) |