-
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
Offset not working in API #13681
Comments
As far as I'm aware With that said, Sonarr wouldn't use it even if it were available, it wants a maximum of 100 results per indexer, and just makes one request per keyword. |
That doesn't sound right, if I look at the Sonarr logs it tried to fetch 1000 results.
In the end it failed searching for that specific episode because Jackett was only returning the same 100 torrents at every query, while animebytes has far more results for One Piece. |
Sorry for the double post, but @ilike2burnthing in Sonarr/Sonarr#5136 (comment) from August one of the Sonarr developers said that 1000 results are in fact fetched, so this sounds like a Jackett problem. |
I don't have an AnimeBytes account, but I don't see why it would be any different than any other indexer. I can't repeat that behaviour with RARBG or Nyaa, with a standard series or anime, searching automatically or manually, searching a series, season, or episode, or even specifically One Piece S21E146 (1037) as above. The OP in the linked issue states this is seemingly random, even down to specific episodes in a series, so I could waste my day trying and still fail apparently. The response you linked to isn't a Sonarr dev, they have made 2 commits, one of which was just plain text. They also just appear to be explaining what the user is seeing based on the logs, not necessarily that it should be happening. The two devs that do reply don't actually explain why offset is being used, nor why it's seemingly random in its application. I suggest asking on their alternate support channels mentioned (ideally their forum or subreddit, in case you need to link to the answer). |
Incorrect. Sonarr will paginate up to 10 pages (1000 results). This is based on the number of results indicated in the response as per spec. There needs to be more than PageSize as reported by the tracker/indexer (default and common: 100) results returned. Test Ref Newznab/Torznab spec is pagination, are you saying that jackett fails to implement torznab spec?
Originally posted by @PearsonFlyer in Sonarr/Sonarr#5136 (comment) is accurate. If jackett's trackers / implementation does not support torznab offset, then their caps should be updated to indicate as such. It appears setting caps.PageSize to 0 would disable paging *Arr side |
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
I was wondering why Sonarr couldn't find the latest One Piece episode from Jackett's AnimeBytes index, and I realized that the offset was not working and all pages were returning the same result. Trying with Nyaa I get the exact same issue. Here's a simplified example:
/api/v2.0/indexers/nyaasi/results/torznab/api?t=search&cat=5070&extended=1&apikey=(removed)&offset=0&limit=1&q=One%20Piece
/api/v2.0/indexers/nyaasi/results/torznab/api?t=search&cat=5070&extended=1&apikey=(removed)&offset=1&limit=1&q=One%20Piece
/api/v2.0/indexers/nyaasi/results/torznab/api?t=search&cat=5070&extended=1&apikey=(removed)&offset=2&limit=1&q=One%20Piece
/api/v2.0/indexers/nyaasi/results/torznab/api?t=search&cat=5070&extended=1&apikey=(removed)&offset=3&limit=1&q=One%20Piece
These return the exact same torrent. The results stay the same no matter the offset. If I set limit=100 I get the same 100 torrents no matter the offset. Via UI I'm able to find hundreds of different torrents instead. How come?
Logged Error Messages
No errors in the logs.
Screenshots
No response
The text was updated successfully, but these errors were encountered: