summaryrefslogtreecommitdiff
path: root/checkpodcasts
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-06-13 21:36:56 -0700
committerBen Sima <ben@bsima.me>2018-06-13 21:36:56 -0700
commit77c9a177b2b595d4ce25095b58e2388fe33cc97a (patch)
tree0853d5c92d67538760005b9c4635a90115bd7ba4 /checkpodcasts
init
Diffstat (limited to 'checkpodcasts')
-rwxr-xr-xcheckpodcasts12
1 files changed, 12 insertions, 0 deletions
diff --git a/checkpodcasts b/checkpodcasts
new file mode 100755
index 0000000..ec40440
--- /dev/null
+++ b/checkpodcasts
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+export DISPLAY=:0
+
+export cfg=~/.config/puckfetcher
+
+puckfetcher -c $cfg -d ~/Podcasts -a ~/tmp/podcasts update
+
+export ret=$(puckfetcher -c $cfg -d ~/Podcasts -a ~/tmp/podcasts list)
+echo "$(date +%Y.%m.%d..%H.%M) $(basename $0): $ret" \
+ >> /var/log/ben.cron.log
+notify-send "Podcasts updated!" "$ret"