-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
API search does not work with Params unless using torznab #15009
Comments
The search modes and parameters are for the torznab endpoint, and it returns an XML RSS feed. Our API can use either:
It returns JSON and does not support those search modes and parameters. What issue were you having with Visual Studio? |
are the only params supported with a JSON response Tracker, cat and query? cant remember the exacy error as it was last week and i since deleted the windows VM i was working on but basically visual studio gives me an error saying i dont have the correct libraries installed to build/compile the project to get the exe even though i do. been nearly 10 years since i worked with C#/VS and it totally different now so gave up after like half a day searching online in how to fix. |
Whoops, edited above, it should have been Jackett/src/Jackett.Server/Controllers/ResultsController.cs Lines 198 to 215 in 0533d38
Were you following the contributing guide for setting up the environment? |
Have you checked our Troubleshooting page for your issue?
Is there already an issue for your problem?
Have you read our Contributing Guidelines?
Environment
Description
After like 5 hours trying to build the Jackett enviroment in visual studio i gave up and am just going to mitigate this issue using a custom qbittorrent.
when using the API is there a way to use the params to get the results back in JSON vs RSS/torznab as i can only get the search query to work.
this works and gives me a json response Note query being used instead of q.
http://10.0.0.125:9117/api/v2.0/indexers/retroflix/results?apikey=API_KEY&query=tt2362006
this search just gives me the last 100 torrents uploaded so the param imdbid does not actually work. (i also tested with other params on other indexers and got the same result)
http://10.0.0.125:9117/api/v2.0/indexers/retroflix/results?apikey=API_KEY&imdbid=tt2362006
using torznab this works but is in torznab/rss format
http://10.0.0.125:9117/api/v2.0/indexers/retroflix/results/torznab?apikey=API_KEY&imdbid=tt2362006
I assume the full endpoint is
http://IP_ADDRESS:9117/api/v2.0/indexers/retroflix/results/api?apikey=APIKEY&t=movie&cat=2&imdbid=tt1234567
as thats what it looks like from the docs but that does not work either.https://github.com/Jackett/Jackett#search-modes-and-parameters
Can something like example from the docs
.../api?apikey=APIKEY&t=movie&cat=2&imdbid=tt1234567
work with a JSON response or does it have to be torznab? as it does not work for me `http://10.0.0.125:9117/api/v2.0/indexers/retroflix/results/api?apikey=APIKEY&t=movie&cat=2&imdbid=tt1234567i am trying to pull this data into a custom application and having the format in JSON makes parsing out the info so much easier.
Logged Error Messages
Screenshots
no logged errors
The text was updated successfully, but these errors were encountered: