Documentation
¶
Overview ¶
Package newznab implements the Newznab indexer plugin for Prism. Newznab is an RSS/Atom-style XML protocol for NZB indexers. It shares the same feed envelope and API parameter shape as Torznab, but serves NZB releases rather than torrents — so there are no seeder/peer attributes.
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 Newznab 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. Some Newznab indexers silently ignore the `tmdbid` parameter and return the recent-uploads feed instead (since `?t=movie` with no params IS the recent feed). Doing both queries means indexers that honour tmdbid contribute precise hits, while indexers that return the recent feed contribute noise that's filtered downstream by the title-match guard.