lib/download_tv/downloader.rb in download_tv-2.0.4 vs lib/download_tv/downloader.rb in download_tv-2.0.5
- old
+ new
@@ -23,9 +23,10 @@
download(t.get_link(show, @auto))
end
def download_from_file(filename)
+ filename = File.realpath(filename)
raise "File doesn't exist" if !File.exists? filename
t = Torrent.new
File.readlines(filename).each { |show| download(t.get_link(show, @auto)) }
end