pirate-autonzb 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('autonzb', '0.4.3') do |p|
6
+ Echoe.new('autonzb', '0.4.4') do |p|
7
7
  p.description = "Ruby tool to automatically download x264 HD nzb movies files from newzleech.com"
8
8
  p.url = "http://github.com/pirate/autonzb"
9
9
  p.author = "Pirate"
data/autonzb.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{autonzb}
5
- s.version = "0.4.3"
5
+ s.version = "0.4.4"
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"]
data/lib/imdb.rb CHANGED
@@ -8,6 +8,7 @@ class IMDB
8
8
  attr_accessor :link, :doc, :id
9
9
 
10
10
  def initialize(name, year = nil, link = nil)
11
+ @try = 3
11
12
  @name, @year, @link = name, year, link
12
13
  @coder = HTMLEntities.new
13
14
  set_doc
@@ -60,6 +61,14 @@ private
60
61
  @doc = doc
61
62
  end
62
63
  end
64
+ rescue
65
+ if @try > 0
66
+ @try -= 1
67
+ $stdout.print '*'
68
+ set_doc
69
+ else
70
+ @doc = nil
71
+ end
63
72
  end
64
73
 
65
74
  def set_id
data/lib/inspector.rb CHANGED
@@ -7,9 +7,7 @@ class Inspector
7
7
  def initialize(paths, options = {})
8
8
  @paths = paths.split(',').map { |p| p.gsub(/\/$/,'') }
9
9
  @options = options
10
- p @options[:srt]
11
10
  @options[:srt] = @options[:srt] ? (@options[:srt].split(',') - ["unknown"] + ['unknown']).uniq : nil
12
- p @options[:srt]
13
11
  @options[:imdb_score] = @options[:imdb_score] ? @options[:imdb_score].to_f : 7.0
14
12
  @options[:year] = @options[:year] ? @options[:year].to_i : 1950
15
13
 
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.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pirate