diff --git a/getdistorted/getdistorted.rb b/getdistorted/getdistorted.rb index 6ef6c18..5012c9c 100755 --- a/getdistorted/getdistorted.rb +++ b/getdistorted/getdistorted.rb @@ -158,6 +158,9 @@ def deleteold(podcast) ! @filelist[entry] puts " deleting #{entry}" File.unlink("#{@podcasts[podcast]["savedir"]}/#{entry}") + if @podcasts[podcast]["linkdir"] && File.symlink?("#{@podcasts[podcast]["linkdir"]}/#{entry}") + File.unlink("#{@podcasts[podcast]["linkdir"]}/#{entry}") + end end } end