Documentation
¶
Overview ¶
Package newznab implements the Newznab indexer plugin for Pilot. 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 Config ¶
type Config struct {
URL string `json:"url"`
APIKey string `json:"api_key,omitempty"`
RateLimit int `json:"rate_limit,omitempty"` // requests per minute; 0 = unlimited
}
Config holds the user-supplied settings for a Newznab indexer instance.
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) GetRecent ¶
GetRecent returns the most recent TV releases from the indexer's RSS feed.