lib/sites/nzbs/nzb.rb in pirate-autonzb-0.5.0 vs lib/sites/nzbs/nzb.rb in pirate-autonzb-0.5.1
- old
+ new
@@ -116,13 +116,13 @@
movies.each do |movie|
$stdout.print "#{movie.dirname}, imdb score: #{movie.score}, age: #{movie.age} day(s)\n"
if @inspector.need?(movie)
$stdout.print " => DOWNLOAD: #{movie.name} (#{movie.year})\n"
download_nzb(movie, @inspector.backup_path)
- @inspector.movies << movie
end
+ @inspector.movies << movie
end
- $stdout.print "No nzb found, maybe change -age or -page setting\n" if @movies.empty?
+ $stdout.print "No nzb found, maybe change -age or -page setting\n" if movies.empty?
end
def download_nzb(movie, backup_path = nil)
Tempfile.open("movie.nzb") do |tempfile|
tempfile.write(@agent.get_file(movie.nzb_link)) # download the nzb
\ No newline at end of file