diff --git a/getdistorted/getdistorted.rb b/getdistorted/getdistorted.rb index 1c28630..3083814 100755 --- a/getdistorted/getdistorted.rb +++ b/getdistorted/getdistorted.rb @@ -36,12 +36,12 @@ # 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, - }, +# "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://www.923freefm.com/pages/podcast/80.rss', # %%DATE%% is a magic word here, gets replaced by the pubdate in @@ -115,8 +115,8 @@ def getenclosure(podcast, item) File.symlink("#{@podcasts[podcast]["savedir"]}/#{filename}", "#{@podcasts[podcast]["linkdir"]}/#{filename}") end return "#{@podcasts[podcast]["savedir"]}/#{filename}" - rescue Timeout::Error, Errno::EHOSTUNREACH, Errno::ECONNREFUSED - puts " error fetching, skipping" + rescue Timeout::Error, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::ETIMEDOUT, Net::HTTPFatalError + puts " error #{$!} fetching, skipping" end else return "#{@podcasts[podcast]["savedir"]}/#{filename}"