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
1.96k stars 74 forks source link

Torznab search by id is broken #214

Closed Send8213 closed 2 months ago

Send8213 commented 2 months ago

Describe the bug

Torznab endpoint gives an error when trying to search with a tmdbid or imdbid parameter. season and ep parameters seem to work as expected.

The error is: failed to search: ERROR: missing FROM-clause entry for table "content" (SQLSTATE 42P01)

To Reproduce

Steps to reproduce the behavior:

  1. Setup Bitmagnet as normal
  2. Visit one of the following paths on a Bitmagnet instance:
  1. See error failed to search: ERROR: missing FROM-clause entry for table "content" (SQLSTATE 42P01)

Expected behavior

The endpoints should return results filtered to any of those specific TMDB/IMDb IDs, or an empty result set if there are no matches, instead of erroring.

Environment Information (Required)

Additional context

None