diff options
author | Phillip Berndt <pberndt@spline.de> | 2018-07-23 21:43:06 +0200 |
---|---|---|
committer | Phillip Berndt <pberndt@spline.de> | 2018-07-23 21:43:06 +0200 |
commit | 3bef766fe61f14d218c9739c00f666f1b4bdf5ca (patch) | |
tree | aa1b96ff7f8a55d817303d0efd986aaa5e72312a | |
parent | f7b1e6f7d0770ac35ee4e15c833667474d3d99b4 (diff) | |
download | comics-3bef766fe61f14d218c9739c00f666f1b4bdf5ca.tar.gz comics-3bef766fe61f14d218c9739c00f666f1b4bdf5ca.tar.bz2 comics-3bef766fe61f14d218c9739c00f666f1b4bdf5ca.zip |
Fix calvin
-rwxr-xr-x | bin/comics/calvin | 3 |
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 |