summaryrefslogtreecommitdiffstats
path: root/bin/comics/geekandpoke
diff options
context:
space:
mode:
authorPhillip Berndt <pberndt@spline.de>2013-03-11 13:30:59 +0100
committerPhillip Berndt <pberndt@spline.de>2013-05-06 09:40:01 +0200
commit5afde763a0e72e82adca82180114545d8c44f02f (patch)
treefb1fa0037ae0a158d389fb28ba9d74041f5e47c1 /bin/comics/geekandpoke
parentb5fa0da33499c27a77ba71ab19ab700a220536eb (diff)
downloadcomics-5afde763a0e72e82adca82180114545d8c44f02f.tar.gz
comics-5afde763a0e72e82adca82180114545d8c44f02f.tar.bz2
comics-5afde763a0e72e82adca82180114545d8c44f02f.zip
Fixed feeds for Claybennett, Zits and Snoopy
Appended on 26. April 2013: I have tested these changes locally for about 1½ months now and they seem to be stable.
Diffstat (limited to 'bin/comics/geekandpoke')
-rwxr-xr-xbin/comics/geekandpoke2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/comics/geekandpoke b/bin/comics/geekandpoke
index 11c4360..ad76c50 100755
--- a/bin/comics/geekandpoke
+++ b/bin/comics/geekandpoke
@@ -19,6 +19,8 @@ wget ${wget_args} --user-agent="$browser" \
--header="Referer: http://geekandpoke.typepad.com/" \
"http://geekandpoke.typepad.com/" -O index.html
+export LC_ALL=C
+
if [ -s index.html ]; then
date="$(LC_ALL=C date +"%B %d, %Y" -d "$daysago days ago")"
nomen="$(grep -A30 "$date" index.html | grep "img class" | head -1 | sed 's/.*img class=[^\/]*src="\([^"]\+\)".*/\1/')"