public function collect($query, $options = [])
  {
    if (!$this->getNyaa()->canProvideAllData()) {
        return $this->collectRecursive($query, $options);
    }


    return $this->collectSingleFeed($query, $options);
  }
public function collect($query, $options = [])
  {
    if (!$this->getNyaa()->canProvideAllData()) {
        return $this->collectRecursive($query, $options);
    }


    return $this->collectSingleFeed($query, $options);
  }
public function collect ( $ query , $ options = [ ] ) { if ( ! $ this -> getNyaa ( ) -> canProvideAllData ( ) ) { return $ this -> collectRecursive ( $ query , $ options ) ; } return $ this -> collectSingleFeed ( $ query , $ options ) ; }
Searches for torrents by query and returns sets created from it
Collects recursively if backend doesn't provide all data

@param string $query The query to search for
@param array $options Extra options for the nyaa feed
Searches for torrents by query and returns sets created from it Collects recursively if backend doesn t provide all data