fix voor raar ampersand probleem
This commit is contained in:
parent
9a8e7fa0d8
commit
c8b04f9f33
2 changed files with 13 additions and 13 deletions
|
|
@ -56,24 +56,24 @@
|
||||||
"savedir" => '/Users/ward/Private/mp3/[books]/BSDTalk',
|
"savedir" => '/Users/ward/Private/mp3/[books]/BSDTalk',
|
||||||
"linkdir" => '/Users/ward/ipod_sync/[books]/BSDTalk',
|
"linkdir" => '/Users/ward/ipod_sync/[books]/BSDTalk',
|
||||||
},
|
},
|
||||||
"radio_rtfm" => {
|
# "radio_rtfm" => {
|
||||||
"rss" => 'http://www.theregister.co.uk/odds/rtfm/headlines.rss',
|
# "rss" => 'http://www.theregister.co.uk/odds/rtfm/headlines.rss',
|
||||||
"rename" => [ /^/, '%%DATE%%-' ],
|
# "rename" => [ /^/, '%%DATE%%-' ],
|
||||||
"savedir" => '/Users/ward/Private/mp3/[books]/Radio RTFM',
|
# "savedir" => '/Users/ward/Private/mp3/[books]/Radio RTFM',
|
||||||
"linkdir" => '/Users/ward/ipod_sync/[books]/Radio RTFM',
|
# "linkdir" => '/Users/ward/ipod_sync/[books]/Radio RTFM',
|
||||||
},
|
# },
|
||||||
"luke_burrage" => {
|
"luke_burrage" => {
|
||||||
"rss" => 'http://www.lukeburrage.com/audio/jugglingpodcast.rss.xml',
|
"rss" => 'http://www.lukeburrage.com/audio/jugglingpodcast.rss.xml',
|
||||||
"savedir" => '/Users/ward/Private/mp3/[books]/Luke Burrage',
|
"savedir" => '/Users/ward/Private/mp3/[books]/Luke Burrage',
|
||||||
"linkdir" => '/Users/ward/ipod_sync/[books]/Luke Burrage',
|
"linkdir" => '/Users/ward/ipod_sync/[books]/Luke Burrage',
|
||||||
"rename" => [ /%20/, ' ' ],
|
"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'
|
|
||||||
}
|
}
|
||||||
|
# "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
|
# vi: filetype=ruby
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ def getenclosure(podcast, item)
|
||||||
date = Date.parse(pubdate.text).strftime("%Y%m%d")
|
date = Date.parse(pubdate.text).strftime("%Y%m%d")
|
||||||
end
|
end
|
||||||
if ! enclosure.nil? && ! enclosure.attribute("url").nil?
|
if ! enclosure.nil? && ! enclosure.attribute("url").nil?
|
||||||
cast = enclosure.attribute("url").to_s.dup
|
cast = enclosure.attribute("url").value.to_s.dup
|
||||||
filename = cast.dup
|
filename = cast.dup
|
||||||
filename.sub!(/^.*\//, "")
|
filename.sub!(/^.*\//, "")
|
||||||
if @podcasts[podcast]["rename"]
|
if @podcasts[podcast]["rename"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue