gPodder

Soldato
Joined
8 Oct 2003
Posts
2,884
Location
Glasgow
Hi there,

I was wondering if there was a way to set up email notification with gPodder, as I have it running on a headless box:)

Basically I would like it to email me when a new podcast episode is downloaded, if this isnt possible with gPodder can any one recommend another client?

Thanks Kevin!
 
this should be doable gpodder allows you to run a bash script when a file is downloaded i have one to move files to a different folder based on its extention.

you just need to figure out how to send an email by command line and add your script to cmd_download_complete in prefs/edit config.

example of my script.
Code:
#!/bin/bash
LOGFILE=$HOME/.gpodder_download.log
date >> $LOGFILE
echo "url: $GPODDER_EPISODE_URL"  >> $LOGFILE
echo "title: $GPODDER_EPISODE_TITLE"  >> $LOGFILE
echo "filename: $GPODDER_EPISODE_FILENAME"  >> $LOGFILE
echo "pubdate: $GPODDER_EPISODE_PUBDATE"  >> $LOGFILE
echo "link: $GPODDER_EPISODE_LINK"  >> $LOGFILE
#echo "desc: $GPODDER_EPISODE_DESC"  >> $LOGFILE
ext=${GPODDER_EPISODE_FILENAME##*.}
if [ "$ext" == "mp3" ]; then
    echo "moving file" >> $LOGFILE
    /bin/mv "$GPODDER_EPISODE_FILENAME" "/home/sharedfiles/webrecordings/podcasts/" >> $LOGFILE 2>&1
fi
 
Last edited:
Back
Top Bottom