addic7ed 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- addic7ed (0.1.5)
4
+ addic7ed (0.1.7)
5
5
  nokogiri
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Ruby command-line script to fetch subtitles on Addic7ed
5
5
 
6
- Current version: **0.1.6**
6
+ Current version: **0.1.7**
7
7
 
8
8
  ### Is it working ?
9
9
 
@@ -68,6 +68,7 @@ There's some work remaining:
68
68
 
69
69
  ### Changelog
70
70
 
71
+ * 0.1.7: Fixed a bug when a subtitle had multiple revisions on Addic7ed.com
71
72
  * 0.1.6: Enhanced subtitles version string filters (remove heading and trailing dashes)
72
73
  * 0.1.5: Enhanced subtitles version string filters (remove heading and trailing spaces and dots)
73
74
  * 0.1.4: Fixed a bug in require paths which made 0.1.3 unusable
@@ -91,7 +91,7 @@ module Addic7ed
91
91
  raise WTFError.new("We're asking for #{LANGUAGES[lang][:name].capitalize} subtitles and Addic7ed gives us #{language.capitalize} subtitles") if LANGUAGES[lang][:name].downcase != language.downcase
92
92
  status_node = sub_node.css('tr:nth-child(3) td:nth-child(4) b').first
93
93
  status = status_node.content.strip
94
- url_node = sub_node.css('a.buttonDownload').first
94
+ url_node = sub_node.css('a.buttonDownload').last
95
95
  url = 'http://www.addic7ed.com' + url_node['href']
96
96
  downloads_node = sub_node.css('tr:nth-child(4) td.newsDate').first
97
97
  downloads = /(?<downloads>\d*) Downloads/.match(downloads_node.content)[:downloads]
@@ -1,3 +1,3 @@
1
1
  module Addic7ed
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: addic7ed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: