QNAPedia Community Wiki

Skip to content

Castget

From QNAPedia

Jump to: navigation, search

Castget is a simple, command-line based RSS enclosure downloader. It is primarily intended for automatic, unattended downloading of podcasts.

Features

  • Simple configuration.
    * Per-channel tagging of downloaded MP3 files using ID3v2.
    * Per-channel download directories.
    * Supports all RSS versions (to the extent this is possible) and Media RSS.


Configuration (Applies to TS-x09 ARM-based NAS model)

1. Install Optware/Ipkg from this guide.


2. Copy the example config file to your users home dir (in this case /root):

For RAID 0/1 disk configuration:

# cp -af /opt/doc/castget/castgetrc.example /share/MD0_DATA/optware/root/.castgetrc

For single disk configuration:

# cp -af /opt/doc/castget/castgetrc.example /share/HDA_DATA/optware/root/.castgetrc


3. Edit the config file:
Below's from the sample config file. Make sure you change the path to the valid location in the NAS (see text in bold).

====
[~] # more /opt/doc/castget/castgetrc.example
#
# Example castgetrc file.
#
# $Id: castgetrc.example,v 1.2 2005/12/09 05:53:57 mariuslj Exp $
#


  1. # Global settings.
    #
  1. This will set the ID3 tag "content type" to "Podcast"
    # and use the directory /home/tom/podcasts for downloading
    # enclosures.
    [*]
    id3contenttype=Podcast
    spool=/share/Qmultimedia/Music/potcast

  1. # Per-channel settings.
    #
  1. This will define a channel with the identifier "dsc", set the RSS
    # feed URL for the channel, override the download directory defined
    # in the global settings section, and append file names of downloaded
    # enclosures to /home/tom/podcasts.m3u.
    [dsc]
    url=http://radio.weblogs.com/0001014/categories/dailySourceCode/rss.xml
    spool=/share/Qmultimedia/Music/potcast/dsc
    playlist=/share/Qmultimedia/Music/playlist/dsc.m3u
  1. This will define a channel with the identifier "yeast", set the RSS
    # feed URL for the channel, and set several ID3 tags.
    [yeast]
    url=http://feeds.feedburner.com/YeastRadio
    id3album=Yeast Radio
    id3leadartist=Madge Weinstein
    id3comment=
    id3title=Yeast Radio
    id3year=2005
    ====


3. Now run castget in the chroot env like this:

For RAID 0/1 disk configuration:

# chroot /share/MD0_DATA/optware castget


For single disk configuration:

# chroot /share/HDA_DATA/optware castget



4. To run castget periodically (for example, 8 am everyday), add it to the crontab (located in /etc/config/crontab)


For RAID 0/1 disk configuration:

 0 8 * * * /usr/sbin/chroot /share/MD0_DATA/optware castget &>/dev/null


For single disk configuration:

0 8 * * * /usr/sbin/chroot /share/HDA_DATA/optware castget &>/dev/null
Personal tools
Language