pirate-autonzb 0.3.3 → 0.3.4
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 +2 -2
- data/lib/inspector.rb +1 -1
- data/lib/movie.rb +7 -4
- 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.3.
|
6
|
+
Echoe.new('autonzb', '0.3.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,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{autonzb}
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.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"]
|
9
|
-
s.date = %q{
|
9
|
+
s.date = %q{2009-01-02}
|
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}
|
12
12
|
s.email = %q{pirate.2061@gmail.com}
|
data/lib/inspector.rb
CHANGED
data/lib/movie.rb
CHANGED
@@ -54,9 +54,11 @@ private
|
|
54
54
|
@name = imdb.name if imdb_link
|
55
55
|
if @name.nil?
|
56
56
|
raw_name = @raw_name.gsub(/\(|\)|\[|\]|\{|\}|\//, ' ')
|
57
|
-
if matched = raw_name.match(/(.*)[0-9]{
|
57
|
+
if matched = raw_name.match(/(.*)(19[0-9]{2}|20[0-9]{2})[^p]/)
|
58
58
|
@name = matched[1]
|
59
|
-
elsif matched = raw_name.match(/(.*)
|
59
|
+
elsif matched = raw_name.match(/(.*)1080p/i)
|
60
|
+
@name = matched[1]
|
61
|
+
elsif matched = raw_name.match(/(.*)720p/i)
|
60
62
|
@name = matched[1]
|
61
63
|
else
|
62
64
|
@name = ''
|
@@ -64,10 +66,11 @@ private
|
|
64
66
|
@name.gsub!(/REPACK|LIMITED|UNRATED|PROPER|REPOST|Directors\sCut/iu,'')
|
65
67
|
@name.gsub!(/^\s+|\s+$/u,'')
|
66
68
|
end
|
69
|
+
@name = imdb.name unless imdb_link
|
67
70
|
end
|
68
71
|
|
69
72
|
def set_year
|
70
|
-
@year = imdb.year
|
73
|
+
@year = imdb.year
|
71
74
|
if (year.nil? || year == 0) && matched = @raw_name.match(/19[0-9]{2}|20[0-9]{2}/)
|
72
75
|
@year = matched[0].to_i
|
73
76
|
end
|
@@ -143,7 +146,7 @@ private
|
|
143
146
|
@tags << 'PROPER' if @raw_name =~ /PROPER/i
|
144
147
|
@tags << 'REPOST' if @raw_name =~ /REPOST/i
|
145
148
|
@tags << 'OUTDATED' if @raw_name =~ /OUTDATED/i
|
146
|
-
@tags << 'Directors Cut' if @raw_name =~ /Directors\sCut/i
|
149
|
+
@tags << 'Directors Cut' if @raw_name =~ /Directors\sCut|DirCut/i
|
147
150
|
end
|
148
151
|
|
149
152
|
end
|
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.3.
|
4
|
+
version: 0.3.4
|
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:
|
12
|
+
date: 2009-01-02 00:00:00 -08:00
|
13
13
|
default_executable: autonzb
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|