addic7ed 0.1.6 → 0.1.7
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/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/lib/addic7ed/episode.rb +1 -1
- data/lib/addic7ed/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
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
|
+
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
|
data/lib/addic7ed/episode.rb
CHANGED
|
@@ -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').
|
|
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]
|
data/lib/addic7ed/version.rb
CHANGED