pirate-autonzb 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/autonzb.gemspec +2 -2
- data/lib/imdb.rb +1 -1
- data/lib/inspector.rb +2 -5
- data/lib/sites/newzleech/nzb.rb +1 -1
- data/lib/sites/nzbs/nzb.rb +2 -2
- metadata +2 -2
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
|
|
3
3
|
require 'rake'
|
4
4
|
require 'echoe'
|
5
5
|
|
6
|
-
Echoe.new('autonzb', '0.5.
|
6
|
+
Echoe.new('autonzb', '0.5.1') do |p|
|
7
7
|
p.description = "Ruby tool to automatically download x264 HD nzb movies files from newzleech.com & nzbs.org"
|
8
8
|
p.url = "http://github.com/pirate/autonzb"
|
9
9
|
p.author = "Pirate"
|
data/autonzb.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{autonzb}
|
5
|
-
s.version = "0.5.
|
5
|
+
s.version = "0.5.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Pirate"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-04-05}
|
10
10
|
s.default_executable = %q{autonzb}
|
11
11
|
s.description = %q{Ruby tool to automatically download x264 HD nzb movies files from newzleech.com & nzbs.org}
|
12
12
|
s.email = %q{pirate.2061@gmail.com}
|
data/lib/imdb.rb
CHANGED
data/lib/inspector.rb
CHANGED
@@ -25,11 +25,8 @@ class Inspector
|
|
25
25
|
|
26
26
|
$stdout.print "Movie criteria: imdb score >= #{@options[:imdb_score]}, year >= #{@options[:year]}#{" and srt [#{@options[:srt].join(',')}]" if @options[:srt]}\n"
|
27
27
|
|
28
|
-
if @options[:login] && @options[:pass]
|
29
|
-
|
30
|
-
else
|
31
|
-
Newzleech::NZB.new(self, download_path, @options)
|
32
|
-
end
|
28
|
+
Nzbs::NZB.new(self, download_path, @options) if @options[:login] && @options[:pass]
|
29
|
+
Newzleech::NZB.new(self, download_path, @options)
|
33
30
|
|
34
31
|
keep_only_best_nzb if @backup_path
|
35
32
|
end
|
data/lib/sites/newzleech/nzb.rb
CHANGED
@@ -90,8 +90,8 @@ module Newzleech
|
|
90
90
|
if @inspector.need?(movie)
|
91
91
|
$stdout.print " => DOWNLOAD: #{movie.name} (#{movie.year})\n"
|
92
92
|
download_nzb(movie, @inspector.backup_path)
|
93
|
-
@inspector.movies << movie
|
94
93
|
end
|
94
|
+
@inspector.movies << movie
|
95
95
|
end
|
96
96
|
$stdout.print "No nzb found, maybe change -age or -page setting\n" if @movies.empty?
|
97
97
|
end
|
data/lib/sites/nzbs/nzb.rb
CHANGED
@@ -118,10 +118,10 @@ module Nzbs
|
|
118
118
|
if @inspector.need?(movie)
|
119
119
|
$stdout.print " => DOWNLOAD: #{movie.name} (#{movie.year})\n"
|
120
120
|
download_nzb(movie, @inspector.backup_path)
|
121
|
-
@inspector.movies << movie
|
122
121
|
end
|
122
|
+
@inspector.movies << movie
|
123
123
|
end
|
124
|
-
$stdout.print "No nzb found, maybe change -age or -page setting\n" if
|
124
|
+
$stdout.print "No nzb found, maybe change -age or -page setting\n" if movies.empty?
|
125
125
|
end
|
126
126
|
|
127
127
|
def download_nzb(movie, backup_path = nil)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pirate-autonzb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pirate
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-04-05 00:00:00 -07:00
|
13
13
|
default_executable: autonzb
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|