Class: SubsPlease

Inherits:
Provider show all
Defined in:
lib/providers.rb

Class Method Summary collapse

Methods inherited from Provider

list

Class Method Details

.search_for(series) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/providers.rb', line 42

def self.search_for(series)
  search_criteria = NyaaSearch.new(
    :filter => Nyaa::Filter::TrustedOnly,
    :category => Nyaa::Category::Anime::EnglishTranslated,
    :query => "1080p -batch #{series}",
    :submitter => "subsplease",
    :page => 1
  )

  scraper = NyaaScraper.new(search_criteria)
  return scraper.magnets
end