protected function getFeed($query, $options)
  {
    $options = array_merge(['query' => $query], $options);
    $nyaa    = $this->getNyaa();
    $feed    = $nyaa->getFeed($options);

    $matcher = $this->getMatcher();

    return array_filter($feed, function ($item) use ($matcher, $query) {
      $title = $item->getMeta('title');
      return $title !== null && $matcher($title, $query);
    });
  }
protected function getFeed($query, $options)
  {
    $options = array_merge(['query' => $query], $options);
    $nyaa    = $this->getNyaa();
    $feed    = $nyaa->getFeed($options);

    $matcher = $this->getMatcher();

    return array_filter($feed, function ($item) use ($matcher, $query) {
      $title = $item->getMeta('title');
      return $title !== null && $matcher($title, $query);
    });
  }
protected function getFeed ( $ query , $ options ) { $ options = array_merge ( [ 'query' => $ query ] , $ options ) ; $ nyaa = $ this -> getNyaa ( ) ; $ feed = $ nyaa -> getFeed ( $ options ) ; $ matcher = $ this -> getMatcher ( ) ; return array_filter ( $ feed , function ( $ item ) use ( $ matcher , $ query ) { $ title = $ item -> getMeta ( 'title' ) ; return $ title !== null && $ matcher ( $ title , $ query ) ; } ) ; }
Gets the torrent feed for given query and options
@param string $query Query to search for in the nyaa feed
@param array $options Options for the nyaa feed
@return NyaaTorrent[]
Gets the torrent feed for given query and options