This is a process I followed to have KnoppMyth automatically download audio and video podcasts (putting each in MythMusic or MythVideo respectively). Having KnoppMyth download Internet content ended up working well as the KM box is on nearly 24x7 with Internet connectivity.
Out of the box KnoppMyth R5F1 already includes built in Podcast clients, such as the mythstream plugin and Democracy but I found both these programs are better for getting podcasts on-demand rather than automatically downloading new content (Democray should be able to be configured to automatically download as well).
This guide uses Podget run by user MythTV to download podcasts. I chose Podget as there is a package for Podget in the Debian unstable repository, configuration is simple, and Podget allows a relative directory to be specified in the configuration per podcast/netcast.
http://podget.sourceforge.net/
! Installing Podget on R5F1 from the KnoppMyth console or over SSH.
1. Change to use unstable debian repository
login as root
pico /etc/apt/sources.list
Change the 1st line from stable to unstable
deb
http://ftp.debian.org unstable main contrib non-free
2. Install podget
apt-get update
apt-get install podget
podget will install
3. Change to back to using stable debian repository machine.
pico /etc/apt/sources.list
Change the 1st line from unstable to stable
deb
http://ftp.debian.org stable main contrib non-free
4. Launch podget to create configuration
login as mythtv (password mythtv)
type “podget�
Some pre-configured Podcasts will start downloading. Hit ctrl+c to cancel the download.
Clean up any unwanted downloads that may have started in /home/mythtv/POD/
5. Customize podget settings
Next we will customize podget’s download location, enable logging, disable playlist creation, and limit number of back episodes podget will retrieve.
Podget’s configuration file for user mythtv can be found at /home/mythtv/.podget/podgetrc.
pico /home/mythtv/.podget/podgetrc
To change download location edit the line
dir_library=/home/mythtv/POD
to
dir_library=/myth
To enable logging remove the # and space on the line
# dir_log=/home/mythtv/POD/LOG
to
dir_log=/home/mythtv/POD/LOG
To disable playlist creation clear the value in playlist_namebase
playlist_namebase=New-
to
playlist_namebase=
To limit podget to only download X back episode podcasts. Leave the value at 0 to get all back episodes. I set mine to 3 back episodes
most_recent=0
to
most_recent=3
6. Add some Podcasts and Videocasts
Next we will add some sample audio and video podcasts feeds. Podget’s feed configuration file for user mythtv can be found at /home/mythtv/.podget/serverlist.
pico /home/mythtv/.podget/serverlist
To add the audio Podcast “Linux Reality� add the line
http://feeds.feedburner.com/linuxreality-mp3 music LinuxReality
The above line is broken into 3 parts, the feed URL, the relative path to download to, and the Title, which will also be a created as a directory. So in the above example the podcast would be downloaded to /myth/music/LinuxReality (/myth was configured in podgetrc)
To add the video Podcast “Systm� add the line
http://revision3.com/systm/feed/xvid-small video Systm
7. Setup cron to retrieve Podcast regularly
Finally we will setup the cron daemon to run podget regulary and retrieve our podcasts.
Still while logged in as mythtv
crontab -e
Enter the following line
15 1 * * * /usr/bin/podget -s #Podget - Check for new content (silent)
The above line runs the command “/usr/bin/podget –s� at 1:15AM every day. Google “cron� for more specific scheduling options.
Howto on the KMwiki too...