bitmagnet-io / bitmagnet

A self-hosted BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration.
https://bitmagnet.io/
MIT License
2.06k stars 78 forks source link

Torznab category parameter ignored #184

Closed ioqy closed 3 months ago

ioqy commented 3 months ago

Describe the bug

The Torznab endpoint ignores the cat parameter.

To Reproduce

Steps to reproduce the behavior:

Have a look at the result of /torznab/?t=search&extended=1&cat=5030,5040,5045,5000&limit=100&offset=0 to see that the result is not limited to the categories of the parameter cat but contains torrents of all categories.

Expected behavior

Limit the result to the provided categories like described in the specification.

Environment Information (Required)

Send8213 commented 3 months ago

Additional info: Looks like it does properly filter the results when you use just one category number, instead of a list of them.