Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search all torrents with no query #8

Open
dns-gh opened this issue Dec 20, 2016 · 0 comments
Open

search all torrents with no query #8

dns-gh opened this issue Dec 20, 2016 · 0 comments

Comments

@dns-gh
Copy link
Owner

dns-gh commented Dec 20, 2016

It seems possible using the t411 api: /torrents/search/?offset=0&limit=200 for example, or with limit=300000 (seems to be the 'total' field maximum value)

it returns something like:

<div class="errorMessage">Missing argument 1 for App\Api\Controllers\TorrentsController::searchAction()</div>
<div class="errorMessage">Undefined variable: query</div>
<div class="errorMessage">Undefined variable: query</div>
{"query":null,"offset":"0","limit":"1","total":"300000","torrents":[{"id":"5622132","name":"Une Saison Au Zoo S06E21 WEB-DL 1080p","category":"639","rewritename":"une-saison-au-zoo-s06e21-web-dl-1080p","seeders":"1","leechers":"1","comments":"0","isVerified":"0","added":"2016-12-20 14:52:08","size":"845642605","times_completed":"0","owner":"107319745","categoryname":"Emission TV","categoryimage":"tv-show","username":"paquena71260","privacy":"normal"}]}

so we need to get rid of the html part first before unmarshaling the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant