torrent_api 0.1.0 → 0.1.1
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/CHANGELOG +2 -1
- data/Rakefile +1 -1
- data/lib/demonoid/result.rb +3 -2
- data/torrent_api.gemspec +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
|
@@ -2,4 +2,5 @@
|
|
|
2
2
|
v0.0.2 dependencies additions/removals, beginning of a readme
|
|
3
3
|
v0.0.3 fixed minor issue with 0.0.2
|
|
4
4
|
v0.0.9 Migrated from tpb to torrent_api (now includes torrent_reactor and demonoid as searches)
|
|
5
|
-
v0.1.0 Fixed Demonoid. Stable performance on :all and :demonoid.
|
|
5
|
+
v0.1.0 Fixed Demonoid. Stable performance on :all and :demonoid.
|
|
6
|
+
v0.1.1 Fixed Demonoid torrent links to be absolute, not relative.
|
data/Rakefile
CHANGED
data/lib/demonoid/result.rb
CHANGED
|
@@ -5,8 +5,9 @@ module Demonoid
|
|
|
5
5
|
def initialize(row = [])
|
|
6
6
|
self.name = row[0].search('td')[1].search('a').inner_html
|
|
7
7
|
self.detail_link = row[0].search('td')[1].search('a').first.get_attribute('href')
|
|
8
|
-
|
|
9
|
-
self.
|
|
8
|
+
base_url = "http://www.demonoid.me"
|
|
9
|
+
self.link = base_url + row[1].search('td')[2].search('a').first.get_attribute('href')
|
|
10
|
+
self.magnet_link = base_url + row[1].search('td')[2].search('a')[1].get_attribute('href')
|
|
10
11
|
self.seeds = row[1].search('td')[6].search('font').inner_html.to_i
|
|
11
12
|
self.leeches = row[1].search('td')[7].search('font').inner_html.to_i
|
|
12
13
|
|
data/torrent_api.gemspec
CHANGED