79 lines
3.2 KiB
Ruby
79 lines
3.2 KiB
Ruby
# $Id: getdistorted.rb 517 2006-11-15 22:11:39Z ward $
|
|
# $URL: svn+ssh://svn/bigdisk/subversion/wpsvnroot/trunk/scripts/getdistorted/getdistorted.rb $
|
|
|
|
#
|
|
# Copyright (c) 2006-2007 Ward Wouts <ward@wouts.nl>
|
|
#
|
|
# Permission to use, copy, modify, and distribute this software for any
|
|
# purpose with or without fee is hereby granted, provided that the above
|
|
# copyright notice and this permission notice appear in all copies.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
#
|
|
|
|
########################################
|
|
# the configuration bit
|
|
|
|
@podcasts = {
|
|
# the podcast name
|
|
"distortedview" => {
|
|
# where's the rss file
|
|
# "rss" => 'http://www.distortedview.com/show/index.xml',
|
|
"rss" => 'http://www.superfreaksideshow.com/members2/show/?feed=rss2',
|
|
"username" => "ward@wouts.nl",
|
|
"password" => "#{File.open("#{ENV['HOME']}/.dvpass").readline}",
|
|
# where should enclosures be saved
|
|
"savedir" => '/Users/ward/Private/mp3/[books]/Distorted View',
|
|
# rename magic, this is used on the file name with sub!
|
|
"rename" => [ /_(\d\d\d\d)(\d\d)/, '\2\1' ],
|
|
# directory to put symlinks to the new files
|
|
"linkdir" => '/Users/ward/ipod_sync/[books]/Distorted View',
|
|
# option to write an m3u file after fetching the mp3s
|
|
"m3u" => '/Users/ward/dv.m3u',
|
|
},
|
|
# "tagesschau" => {
|
|
# "rss" => 'http://www.tagesschau.de/export/podcast',
|
|
# "savedir" => '/Users/ward/ipod_sync/[books]/Tagesschau',
|
|
# # delete files that aren't in the rss anylonger
|
|
# "delete" => true,
|
|
# },
|
|
# "pennradio" => {
|
|
# "rss" => 'http://penn.freefm.com/pages/podcast/431.rss',
|
|
# # %%DATE%% is a magic word here, gets replaced by the pubdate in
|
|
# # YYYYMMDD format. Won't work if there is no pubDate in the rss feed
|
|
# "rename" => [ /^/, '%%DATE%%-' ],
|
|
# "savedir" => '/Users/ward/Private/mp3/[books]/PennRadio',
|
|
# "linkdir" => '/Users/ward/ipod_sync/[books]/PennRadio',
|
|
# },
|
|
"bsdtalk" => {
|
|
"rss" => 'http://feeds.feedburner.com/Bsdtalk',
|
|
"savedir" => '/Users/ward/Private/mp3/[books]/BSDTalk',
|
|
"linkdir" => '/Users/ward/ipod_sync/[books]/BSDTalk',
|
|
},
|
|
"radio_rtfm" => {
|
|
"rss" => 'http://www.theregister.co.uk/odds/rtfm/headlines.rss',
|
|
"rename" => [ /^/, '%%DATE%%-' ],
|
|
"savedir" => '/Users/ward/Private/mp3/[books]/Radio RTFM',
|
|
"linkdir" => '/Users/ward/ipod_sync/[books]/Radio RTFM',
|
|
},
|
|
"luke_burrage" => {
|
|
"rss" => 'http://www.lukeburrage.com/audio/jugglingpodcast.rss.xml',
|
|
"savedir" => '/Users/ward/Private/mp3/[books]/Luke Burrage',
|
|
"linkdir" => '/Users/ward/ipod_sync/[books]/Luke Burrage',
|
|
"rename" => [ /%20/, ' ' ],
|
|
},
|
|
"the_skeptics_guide_to_the_universe" => {
|
|
"rss" => 'http://www.theskepticsguide.org/rss.xml',
|
|
"rename" => [ /(?i)(skepticast)/, 'sk ' ],
|
|
"savedir" => '/Users/ward/Private/mp3/[books]/The Skeptics Guide',
|
|
"linkdir" => '/Users/ward/ipod_sync/[books]/The Skeptics Guide'
|
|
}
|
|
}
|
|
|
|
# vi: filetype=ruby
|