bin/autonzb in pirate-autonzb-0.4.5 vs bin/autonzb in pirate-autonzb-0.5.0

- old
+ new

@@ -1,10 +1,9 @@ #!/usr/bin/env ruby require 'optiflag' require File.join(File.dirname(__FILE__), '..', 'lib', 'inspector') -require File.join(File.dirname(__FILE__), '..', 'lib', 'nzb') module AutoNZB extend OptiFlagSet flag "d" do description "Download directory path for new nzb" end @@ -33,20 +32,29 @@ value_matches ["pages must be a number", /[0-9]+/] end optional_flag "backup" do description "Backup folder path (to save a copy of all downloaded nzb files and prevent an already downloaded nzb to be re-downloaded)" end + optional_flag "login" do + description "Username for www.nzbs.org" + end + optional_flag "pass" do + description "Password for www.nzbs.org" + end and_process! end begin - inspector = Inspector.new(ARGV.flags.movies || '', :year => ARGV.flags.year, - :imdb_score => ARGV.flags.imdb, - :srt => ARGV.flags.srt, - :backup => ARGV.flags.backup) - - newzleech = NZB.new(inspector, ARGV.flags.d, :age => ARGV.flags.age, :pages => ARGV.flags.pages) + inspector = Inspector.new(ARGV.flags.d, :year => ARGV.flags.year, + :imdb_score => ARGV.flags.imdb, + :srt => ARGV.flags.srt, + :age => ARGV.flags.age, + :pages => ARGV.flags.pages, + :backup_path => ARGV.flags.backup, + :movie_paths => ARGV.flags.movies, + :login => ARGV.flags.login, + :pass => ARGV.flags.pass) rescue => e p e.to_s Inspector.growl("AutoNZB Error!", 'look into the console log') end \ No newline at end of file