zooqle_search 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 623cddd1874d3b8d8680dcbd0e0cff19270bcaf9
4
- data.tar.gz: b801c8b1e729cb467f03feb53d6f3760c24b0631
3
+ metadata.gz: 15a7e692f31d9a9397a170c18d7c1715e6673df5
4
+ data.tar.gz: 6933fa77e4b99077b8674ba02907b2ca2f56ac5a
5
5
  SHA512:
6
- metadata.gz: a005e9d18329fb50df9d9d91a3fb7a473217080b0cbf1bca77433d92ff5ba62c0f4e2364e83066705885cb5a8088900dec6ac2dcb89635e3aba2af384d23fe7b
7
- data.tar.gz: 73f1a9e3797c406bc188f34c8b8254feaa1e45de97040117c56dd881d3af80df781ab64af5164c39fc5328c0a00e406451c020aeb59251137a89ed7d471e600d
6
+ metadata.gz: 8282182566a7ade46f87feadea7ce231b53da7a98e675fb797749fbce38f5f1cac180bc6b17e9cd204d8df114fbcf6fe22be58b894caf7cbb8e643b817dc093b
7
+ data.tar.gz: 78ddf1877436e49239dd06037fcd0e40c211277d4aae2f4d19d43dfa8d1053662e7dadbbcfd19bd8b18d916933ffaa856754c30226b0113b983dc5e8280a0ce8
@@ -41,13 +41,14 @@ module ZooqleSearch
41
41
 
42
42
  crawled_links.each do |link|
43
43
  filename = link.at('a').text
44
- next if filename.strip.empty?
44
+ seeders_leechers = link.at('div[title^="Seeders:"]')
45
+ next if filename.strip.empty? || seeders_leechers.nil?
45
46
 
46
47
  size = link.at('.progress-bar').text
47
48
  magnet = link.at('a[title="Magnet link"]')['href']
48
49
  download_url = BASE_URL + link.at('a[title="Generate .torrent"]')['href']
49
50
 
50
- seeders_leechers = link.at('div[title^="Seeders:"]')['title']
51
+ seeders_leechers = seeders_leechers['title']
51
52
  seeders = seeders_leechers[/Seeders: (?<seeders>[\d,]+) \| Leechers: (?<leechers>[\d,]+)/, :seeders]
52
53
  leechers = seeders_leechers[/Seeders: (?<seeders>[\d,]+) \| Leechers: (?<leechers>[\d,]+)/, :leechers]
53
54
 
@@ -1,3 +1,3 @@
1
1
  module ZooqleSearch
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zooqle_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Marchante