summaryrefslogtreecommitdiffstats
path: root/bin/comics/garfield
diff options
context:
space:
mode:
Diffstat (limited to 'bin/comics/garfield')
-rwxr-xr-xbin/comics/garfield4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/comics/garfield b/bin/comics/garfield
index 4aaecfe..c73f65e 100755
--- a/bin/comics/garfield
+++ b/bin/comics/garfield
@@ -16,8 +16,8 @@ newn="${day}.gif"
month="$(date -d "$daysago days ago" +%m)"
server="http://www.gocomics.com/garfield/$year/$month/$day"
-nomen="$(wget ${wget_args} "$server" -O - | grep "class=\"strip\"" | \
- sed 's#.*<img alt="Garfield"[^<]*src="\([^"]*\)".*#\1#')"
+nomen="$(wget ${wget_args} "$server" -O - | awk "/picture.*item-comic-image\"/,/<\/picture>/" | \
+ sed -n 's/.*src="\(.*\)".*/\1/p')"
echo "Dateiname: $nomen"
echo