summaryrefslogtreecommitdiffstats
path: root/bin/comics/jeremykaye
diff options
context:
space:
mode:
Diffstat (limited to 'bin/comics/jeremykaye')
-rwxr-xr-xbin/comics/jeremykaye39
1 files changed, 0 insertions, 39 deletions
diff --git a/bin/comics/jeremykaye b/bin/comics/jeremykaye
deleted file mode 100755
index abe0150..0000000
--- a/bin/comics/jeremykaye
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-if [ -z "$1" -o ! -d "$1" ]; then
- echo "Usage: $0 <top-directory> [<days ago>]" 1>&2
- exit 1
-fi
-
-top="${1}"
-shift
-
-source "${top}/etc/settings.sh"
-tmp="$(mktemp -d)"
-cd "${tmp}"
-
-export LC_ALL=C
-
-searchdate="$(date -d "$daysago days ago" "+%b %d, %Y")"
-
-echo "searching on $searchdate"
-
-posturl="$(wget -O - http://jeremykaye.tumblr.com/archive | sed -nre "s#.*(http://[^\"]+)\">.+post_date\">${searchdate}.*#\1#p")"
-
-echo "post url: $posturl"
-
-if [ -n "$posturl" ]; then
- read URL TITLE <<EOF
-$(wget -O - "$posturl" | sed -nre "s#.*img src=\"(http://.+media.tumblr.com/[^\"]+.png)\" *alt=\"(.+)#\1 \2#p")
-EOF
- echo "url: $URL"
- echo "title: $TITLE"
- wget ${wget_args} --header="Referer: $posturl" -O "${day}.png" $URL
- if [ -s "${tmp}/${day}.png" ]; then
- mv "${tmp}/${day}.png" "${image_dir}/${day}.png"
- rm -f "${comic_dir}/latest.png"
- ln -s "${image_offset}/${day}.png" "${comic_dir}/latest.png"
- fi
-fi
-
-rm -rf "${tmp}"