An autodownloader for rinse.fm podcasts.
pip install -r requirements.txt
- Download the python script and the example
YAML
config file. - Rename
config.yaml.examle
toconfig.yaml
. - Add shows you want to download to
config.yaml
. If you've downloaded them before, you can put the date of the last show you downloaded for thelast-dl
item. - You can put
config.yaml
anywhere you want, but if it's not in the same directory as the script changeCONFIG_FILE
inselector.py
to match its path.
All done! Simply run selector.py whenever you want to check for and download new shows. You can also run it in a cronjob weekly if you want:
0 13 * * 0 /path/to/selector
Will run selector
at 13:00 every Sunday.
The config file is written in basic YAML. The
directory
variable is where selector
will download music to. Every
node in shows
must have an id
setting, found by looking at the url on the
Rinse website. The name of each node will be used as the name of the show. If
dir
is present, then podcasts from this show will be downloaded to
directory/dir
. If last-dl
is present, only shows newer than this date
(YYYY-MM-DD) will be downloaded.
If you'd like to run unit tests:
pip install -r requirements-testing.txt
nosetests