diff options
-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 |