Skip to content

Commit

Permalink
Return the number of results found
Browse files Browse the repository at this point in the history
  • Loading branch information
mcartoixa committed Jan 24, 2018
1 parent c483050 commit 3dec9fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ php:
- '5.6'

env:
- DLM_PACKAGE_VERSION=1.0.$TRAVIS_BUILD_NUMBER
- DLM_PACKAGE_VERSION=1.1.$TRAVIS_BUILD_NUMBER

install:
- php bin/composer.phar install -n
Expand Down
2 changes: 1 addition & 1 deletion dlm/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public function prepare($curl, $query)
'format' => 'json_extended',
'token' => strval($this->token)
));
Echo 'URL: '.$url."\n";
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => $url,
Expand All @@ -50,6 +49,7 @@ public function parse($plugin, $response)

$plugin->addResult($title, $download, $size, $datetime, $page, $hash, $seeds, $leechs, $category);
}
return count($results->torrent_results);
}

private $token;
Expand Down

0 comments on commit 3dec9fd

Please sign in to comment.