jackett

package
v0.0.0-...-8ce6904 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caps

type Caps struct {
	ID   string `json:"ID"`
	Name string `json:"Name"`
}

type Indexer

type Indexer struct {
	ID               string
	Name             string
	Description      string
	Type             string
	Configured       bool
	SiteLink         string `json:"site_link"`
	Alternativelinks []string
	Language         string
	LastError        string `json:"last_error"`
	Potatoenabled    bool
	Caps             []Caps
}

type IndexerConfig

type IndexerConfig []struct {
	ID      string
	Type    string            `json:",omitempty"`
	Name    string            `json:",omitempty"`
	Value   string            `json:",omitempty"`
	Options map[string]string `json:",omitempty"`
}

func (*IndexerConfig) SetCredentials

func (ic *IndexerConfig) SetCredentials(user, passwd string)

func (*IndexerConfig) UpdateField

func (ic *IndexerConfig) UpdateField(id, param string)

type Indexers

type Indexers []Indexer

func (*Indexers) GetIndexer

func (i *Indexers) GetIndexer(id string) *Indexer

type Jackett

type Jackett struct {
	// contains filtered or unexported fields
}

func New

func New(conf *config.Config) *Jackett

func (*Jackett) AddAllPublicIndexers

func (j *Jackett) AddAllPublicIndexers()

func (*Jackett) AddIndexer

func (j *Jackett) AddIndexer(id, user, passwd string)

func (*Jackett) ExportPotato

func (j *Jackett) ExportPotato(indexerID string) string

func (*Jackett) ExportTorznab

func (j *Jackett) ExportTorznab(indexerID string, hostdomain string) string

func (*Jackett) GetAPI

func (j *Jackett) GetAPI() string

func (*Jackett) GetAllIndexers

func (j *Jackett) GetAllIndexers()

func (*Jackett) GetConfiguredIndexers

func (j *Jackett) GetConfiguredIndexers() Indexers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL