pirate-autonzb 0.3.4 → 0.3.5
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 +1 -1
- data/autonzb.gemspec +1 -1
- data/lib/movie.rb +2 -3
- metadata +1 -1
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
|
|
3
3
|
require 'rake'
|
4
4
|
require 'echoe'
|
5
5
|
|
6
|
-
Echoe.new('autonzb', '0.3.
|
6
|
+
Echoe.new('autonzb', '0.3.5') 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
data/lib/movie.rb
CHANGED
@@ -51,7 +51,6 @@ private
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def set_name
|
54
|
-
@name = imdb.name if imdb_link
|
55
54
|
if @name.nil?
|
56
55
|
raw_name = @raw_name.gsub(/\(|\)|\[|\]|\{|\}|\//, ' ')
|
57
56
|
if matched = raw_name.match(/(.*)(19[0-9]{2}|20[0-9]{2})[^p]/)
|
@@ -66,11 +65,11 @@ private
|
|
66
65
|
@name.gsub!(/REPACK|LIMITED|UNRATED|PROPER|REPOST|Directors\sCut/iu,'')
|
67
66
|
@name.gsub!(/^\s+|\s+$/u,'')
|
68
67
|
end
|
69
|
-
@name = imdb.name unless
|
68
|
+
@name = imdb.name unless path
|
70
69
|
end
|
71
70
|
|
72
71
|
def set_year
|
73
|
-
@year = imdb.year
|
72
|
+
@year = imdb.year unless path
|
74
73
|
if (year.nil? || year == 0) && matched = @raw_name.match(/19[0-9]{2}|20[0-9]{2}/)
|
75
74
|
@year = matched[0].to_i
|
76
75
|
end
|