bin/autonzb in pirate-autonzb-0.2.2 vs bin/autonzb in pirate-autonzb-0.2.3
- old
+ new
@@ -10,14 +10,13 @@
end
optional_flag "movies" do
description "Directories paths (separated by ,) with all your Movie's folders"
end
optional_flag 'srt' do
- description "Subtitle's language wanted (separated by ,), ie 'fr,en'.
- Use 'none' if you want download movies without subtitle too.
+ description "Subtitle languages desired (separated by ,), ie 'fr,en'.
+ Add 'none' at the end if you want to download movies without subtitles too.
(Order is important to define if a nzb is needed), default: none"
- value_in_set ['fr', 'en', 'none']
end
optional_flag 'imdb' do
description "IMDB score limit, default: 7.0"
end
optional_flag 'year' do
@@ -26,18 +25,22 @@
end
optional_flag 'age' do
description "Age limit, in day, of nbz file on newzleech, default: 160"
value_matches ["age must be a number", /[0-9]+/]
end
- optional_flag "page" do
- description "number of the page on newzleech, default: 1. Think to augment -a when change page number"
- value_matches ["page must be a number", /[0-9]+/]
+ optional_flag "pages" do
+ description "number page(s) parsed on newzleech, default: 2. Think to augment -a when change number of pages"
+ 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
and_process!
end
inspector = Inspector.new(ARGV.flags.movies || '', :year => ARGV.flags.year,
:imdb_score => ARGV.flags.imdb,
- :srt => ARGV.flags.srt)
+ :srt => ARGV.flags.srt,
+ :backup => ARGV.flags.backup)
-nzbmatrix = NZB.new(inspector, ARGV.flags.d, :age => ARGV.flags.age, :page => ARGV.flags.page)
+nzbmatrix = NZB.new(inspector, ARGV.flags.d, :age => ARGV.flags.age, :pages => ARGV.flags.pages)