LinHES Forums
http://forums.linhes.org/

Setting up KnoppMyth to fetch Podcasts
http://forums.linhes.org/viewtopic.php?f=11&t=16080
Page 1 of 1

Author:  spalVl [ Wed Aug 08, 2007 9:04 pm ]
Post subject:  Setting up KnoppMyth to fetch Podcasts

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
Code:
pico /etc/apt/sources.list


Change the 1st line from stable to unstable
Code:
deb http://ftp.debian.org unstable main contrib non-free


2. Install podget
Code:
apt-get update
apt-get install podget

podget will install

3. Change to back to using stable debian repository machine.
Code:
pico /etc/apt/sources.list


Change the 1st line from unstable to stable
Code:
deb http://ftp.debian.org stable main contrib non-free


4. Launch podget to create configuration
login as mythtv (password mythtv)
type

Code:
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.

Code:
pico /home/mythtv/.podget/podgetrc 


To change download location edit the line

Code:
dir_library=/home/mythtv/POD
to
dir_library=/myth


To enable logging remove the # and space on the line

Code:
# dir_log=/home/mythtv/POD/LOG
to
dir_log=/home/mythtv/POD/LOG

To disable playlist creation clear the value in playlist_namebase

Code:
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

Code:
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.
Code:
pico /home/mythtv/.podget/serverlist


To add the audio Podcast “Linux Reality� add the line
Code:
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

Code:
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

Code:
crontab -e


Enter the following line

Code:
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.

Author:  stevetv [ Fri Sep 21, 2007 6:06 pm ]
Post subject: 

this is exactly what i was searching for. thanks.. ill give it a try on F27.

Author:  thornsoft [ Tue Sep 25, 2007 7:11 pm ]
Post subject: 

This is awesome. Thanks!

My list:
Code:
http://leoville.tv/podcasts/twit.xml tech This Week In Tech
http://podcasts.engadget.com/rss-aac.xml tech Engadget
http://revision3.com/diggnation/feed/mp3 tech Diggnation
http://rssnewsapps.ziffdavis.com/audioblogs/crankygeeks/cg.audio.xml tech Cranky Geeks
http://leoville.tv/podcasts/ww.xml tech Windows Weekly with Paul Thurott
http://sharewareradio.libsyn.com/rss tech Shareware Radio
http://www.cyberears.com/podcasts/podcast_5039.xml tech Delphi Hour Replays


I'm dumping these into a directory that's shared with my Windows machines, so I can easily plop these onto my phone, and listen at my desk with windows media player.

Lots of podcasts listed at http://www.digg.com/podcasts

Author:  magic [ Wed Nov 21, 2007 9:35 pm ]
Post subject:  Updating video list

I've been using Podget this way for a while now and it works great. Thanks for the how to!

I was wondering if there is a way have a cron job run the "video manager" after downloading podcasts to update the database with the new files?

Author:  spalVl [ Thu Nov 22, 2007 12:30 pm ]
Post subject:  Re: Updating video list

magic wrote:
I was wondering if there is a way have a cron job run the "video manager" after downloading podcasts to update the database with the new files?


IMDB updater script should work http://www.4shared.com/file/23145905/54 ... ertar.html

Never tried it myself...

I set my MythVideo view (Gallery) to browse files. That way Video Manager doesn't have to be run to show new files.

Utilities/Setup>Setup>Video Settings>General Settings>2nd screen, Check "<Your View> browse files"

Author:  magic [ Fri Nov 23, 2007 7:11 pm ]
Post subject: 

I changed the settings, and that did what I needed. Thanks for the tip!

Author:  rootmoose [ Mon Nov 26, 2007 9:31 am ]
Post subject: 

Cool - Has anyone done this with the vlog/podcasts going into their recordings instead of music or video?

Author:  spalVl [ Mon Nov 26, 2007 10:02 am ]
Post subject: 

rootmoose wrote:
Cool - Has anyone done this with the vlog/podcasts going into their recordings instead of music or video?


In order for media to show up in recordings it has to have a corresponding entry in the mythconverg, recordings table.

That said, you could probably create a script using the "import recordings" script (forget exact name) to import the recordings into the recordings database after they are downloaded. Also just putting an entry into the database often isn't enough, without a seek table the ffw/rrw functions from the Internal MythTV player are poor. So something to script adding the seek table too is useful.

Also there is a project MythNetTV that may better fit for your needs.

http://www.stillhq.com/mythtv/mythnettv ... release-2/

Release notes:

Quote:
This release has bug fixes (including code from "nickca" for FLV support), and some new minor features. Enjoy!

* Started working harder to ensure video filenames are unique once imported into MythTV, I now prepend video files with epoch seconds at time of import
* DIVX (not divx) doesn't need transcode, added. Check for the existence of the video directory, and return an error if it needs creating.
* Handle storage groups, check for the existence of the data directory
* Updated docs
* Complained about the poor state of SWF support
* WMV support
* FLV support

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/