Documentation
¶
Overview ¶
Package torznab implements the Torznab indexer plugin for Prism. Torznab is an RSS/Atom-style XML protocol used by Prowlarr and Jackett to expose torrent indexers over a common API.
Index ¶
- type Config
- type Indexer
- func (idx *Indexer) Capabilities(ctx context.Context) (plugin.Capabilities, error)
- func (idx *Indexer) GetRecent(ctx context.Context) ([]plugin.Release, error)
- func (idx *Indexer) Name() string
- func (idx *Indexer) Protocol() plugin.Protocol
- func (idx *Indexer) Search(ctx context.Context, q plugin.SearchQuery) ([]plugin.Release, error)
- func (idx *Indexer) Test(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Indexer is a Torznab indexer plugin instance.
func (*Indexer) Capabilities ¶
Capabilities fetches and parses the indexer's capabilities document.
func (*Indexer) Search ¶
Search queries the indexer for releases matching q.
Strategy: run BOTH the tmdbid lookup and the free-text search, then dedupe by GUID. Doing both is necessary because some Torznab/Prowlarr indexers silently ignore the `tmdbid=` parameter and return the recent-uploads feed instead (since `?t=movie` with no params IS the recent feed). The old "try tmdbid first, fall back if zero results" strategy was fooled by these indexers — the recent feed is non-empty so the fall-through never triggered, and search results were polluted with random recent uploads.
Indexers that properly honour `tmdbid` contribute precise hits; indexers that return the recent feed contribute noise that's filtered downstream by the title-match guard in autosearch/releases. The text search is the safety net that always runs.