Sha256: 664e0ba29e176696910a16be5f1d09fb68da8d25f04f5a5e9c4f0a0ffc8afbd0
Contents?: true
Size: 633 Bytes
Versions: 3
Compression:
Stored size: 633 Bytes
Contents
# frozen_string_literal: true module DownloadTV ## # EZTV.ag grabber class Torrentz < LinkGrabber def initialize super('https://torrentzeu.org/kick.php?q=%s') end def get_links(show) raw_data = @agent.get(format(@url, show)) results = raw_data.search('tbody tr') # require 'byebug'; byebug raise NoTorrentsError if results.empty? data = results.sort_by { |e| e.search('td[data-title="Last Updated"]')[1].text.to_i }.reverse data.collect do |i| [i.children[1].text.strip, i.children[11].children[1].attribute('href').text] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
download_tv-2.6.6 | lib/download_tv/grabbers/torrentz2.rb |
download_tv-2.6.5 | lib/download_tv/grabbers/torrentz2.rb |
download_tv-2.6.4 | lib/download_tv/grabbers/torrentz2.rb |