public function collectRecursive($query, $options = [])
  {
    $feed = $this->getFeed($query, $options);

    $userIds = [];

    foreach ($feed as $torrent) {
      if (!isset($userIds[$torrent->getSeriesHash()])) {
        $userIds[$torrent->getSeriesHash()] = $torrent->getUserId();
      }
    }

    $userIds = array_unique(array_values($userIds));

    return $this->collectForUser($query, $userIds, $options);
  }
public function collectRecursive($query, $options = [])
  {
    $feed = $this->getFeed($query, $options);

    $userIds = [];

    foreach ($feed as $torrent) {
      if (!isset($userIds[$torrent->getSeriesHash()])) {
        $userIds[$torrent->getSeriesHash()] = $torrent->getUserId();
      }
    }

    $userIds = array_unique(array_values($userIds));

    return $this->collectForUser($query, $userIds, $options);
  }
public function collectRecursive ( $ query , $ options = [ ] ) { $ feed = $ this -> getFeed ( $ query , $ options ) ; $ userIds = [ ] ; foreach ( $ feed as $ torrent ) { if ( ! isset ( $ userIds [ $ torrent -> getSeriesHash ( ) ] ) ) { $ userIds [ $ torrent -> getSeriesHash ( ) ] = $ torrent -> getUserId ( ) ; } } $ userIds = array_unique ( array_values ( $ userIds ) ) ; return $ this -> collectForUser ( $ query , $ userIds , $ options ) ; }
Searches for torrent and searches for each found torrent in their user for more torrents, to create complete sets

@param string $query The query to search for
@param array $options Extra options for the nyaa feed
@return NyaaSet[]
Searches for torrent and searches for each found torrent in their user for more torrents to create complete sets