pirate-autonzb 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.0') do |p|
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.0"
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-03-22}
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
@@ -8,7 +8,7 @@ class IMDB
8
8
  attr_accessor :link, :doc, :id
9
9
 
10
10
  def initialize(name, year = nil, link = nil)
11
- $stdout.print 'i'
11
+ # $stdout.print 'i'
12
12
  @try = 3
13
13
  @name, @year, @link = name, year, link
14
14
  @coder = HTMLEntities.new
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
- Nzbs::NZB.new(self, download_path, @options)
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
@@ -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
@@ -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 @movies.empty?
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.0
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-03-22 00:00:00 -07:00
12
+ date: 2009-04-05 00:00:00 -07:00
13
13
  default_executable: autonzb
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency