Class: Torrentz::Fetch::Vertor

Inherits:
Simple
  • Object
show all
Defined in:
lib/torrentz/fetch.rb

Overview

Returns torrent urls only.

Instance Method Summary collapse

Methods inherited from Simple

#doc, #initialize

Methods included from Logger

#logger, #logger=

Constructor Details

This class inherits a constructor from Torrentz::Fetch::Simple

Instance Method Details

#getObject



86
87
88
89
90
91
92
# File 'lib/torrentz/fetch.rb', line 86

def get
  candidate = doc.css('ul.down_but li.bt a').map do |a|
    a['href']
  end.find do |url|
    url =~ /mod=download/
  end
end