Filter search by size and resolution

Search results can now be narrowed by a size and resolution range — in the web API, Torznab and Newznab too.

Search now accepts a min/max size and a resolution RANGE (previously only exact match). It works the same way across /api/v1/search, /api/v1/torznab and /api/v1/newznab, and combines with every other filter.

The REST API takes size in GiB (size_min_gb/size_max_gb); Torznab/Newznab take bytes (minsize/maxsize, the newznab standard) so Prowlarr and Sonarr can push their own cap instead of discarding releases one by one. Resolution always uses quality_min/quality_max.

Full docs, with every parameter, at /api/docs.

size & resolution range
# REST API — size in GiB, resolution as a range$ curl 'https://herecomesaconsequence.com/api/v1/search?q=dune&quality_min=1080p&quality_max=2160p&size_max_gb=8'  { "title": "Dune (2021)", "torrents": [{ "quality": "1080p", "size_gb": 6.2 }] }# Torznab/Newznab — same range, bytes (newznab standard)$ curl 'https://herecomesaconsequence.com/api/v1/torznab?t=search&q=dune&minsize=1073741824&maxsize=10737418240'  <item><title>Dune.2021.1080p.BluRay.x264</title> ... </item>