summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhillip Berndt <pberndt@spline.de>2018-07-23 21:43:06 +0200
committerPhillip Berndt <pberndt@spline.de>2018-07-23 21:43:06 +0200
commit3bef766fe61f14d218c9739c00f666f1b4bdf5ca (patch)
treeaa1b96ff7f8a55d817303d0efd986aaa5e72312a
parentf7b1e6f7d0770ac35ee4e15c833667474d3d99b4 (diff)
downloadcomics-3bef766fe61f14d218c9739c00f666f1b4bdf5ca.tar.gz
comics-3bef766fe61f14d218c9739c00f666f1b4bdf5ca.tar.bz2
comics-3bef766fe61f14d218c9739c00f666f1b4bdf5ca.zip
Fix calvin
-rwxr-xr-xbin/comics/calvin3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/comics/calvin b/bin/comics/calvin
index edbe7e6..cd057fe 100755
--- a/bin/comics/calvin
+++ b/bin/comics/calvin
@@ -16,8 +16,7 @@ newn="${day}.gif"
month="$(date -d "$daysago days ago" +%m)"
server="http://www.gocomics.com/calvinandhobbes/$year/$month/$day"
-nomen="$(wget ${wget_args} "$server" -O - | grep "class=\"strip\"" | \
- sed 's#.*<img alt="Calvin and Hobbes"[^<]*src="\([^"]*\)".*#\1#')"
+nomen="$(wget ${wget_args} "$server" -O - | sed -nre 's#<meta property="og:image" content="([^"]+)".+#\1#p')"
echo "Dateiname: $nomen"
echo