jackett

package
v0.0.0-...-fcf96a8 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxRedirects = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func Initialize

func Initialize() *Client

Initialize Jackett Client

func (*Client) GetConfiguredIndexers

func (client *Client) GetConfiguredIndexers() []Indexer

Get list of configured Jackett indexers

func (*Client) GetServerConfiguration

func (client *Client) GetServerConfiguration() *ServerConfiguration

Get Jackett server configuration

func (*Client) LoadIndexersList

func (client *Client) LoadIndexersList() error

Load Jackett indexers list

func (*Client) LoadServerConfiguration

func (client *Client) LoadServerConfiguration() error

Load Jackett server configuration

func (*Client) Search

func (client *Client) Search(query string, trackers []string, categories []string) (*SearchResponse, error)

Perform search by query value on specified trackers, with specified categories

type Indexer

type Indexer struct {
	ID                   string        `json:"id"`
	Name                 string        `json:"name"`
	Description          string        `json:"description"`
	Type                 string        `json:"type"`
	Configured           bool          `json:"configured"`
	SiteLink             string        `json:"site_link"`
	AlternativeSiteLinks []string      `json:"alternativesitelinks"`
	Language             string        `json:"language"`
	LastError            string        `json:"last_error"`
	PotatoEnabled        bool          `json:"potatoenabled"`
	Categories           []IndexerCaps `json:"caps"`
}

type IndexerCaps

type IndexerCaps struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Indexers

type Indexers []Indexer

type SearchIndexer

type SearchIndexer struct {
	ID      string      `json:"ID"`
	Name    string      `json:"Name"`
	Status  uint64      `json:"Status"`
	Results uint64      `json:"Results"`
	Error   interface{} `json:"Error"`
}

type SearchResponse

type SearchResponse struct {
	Results  []SearchTorrent `json:"Results"`
	Indexers []SearchIndexer `json:"Indexers"`
}

type SearchTorrent

type SearchTorrent struct {
	FirstSeen            string      `json:"FirstSeen"`
	Tracker              string      `json:"Tracker"`
	TrackerID            string      `json:"TrackerId"`
	CategoryDesc         string      `json:"CategoryDesc"`
	BlackHoleLink        interface{} `json:"BlackholeLink"`
	Title                string      `json:"Title"`
	GUID                 string      `json:"Guid"`
	Link                 string      `json:"Link"`
	Comments             string      `json:"Comments"`
	PublishDate          string      `json:"PublishDate"`
	Category             []int64     `json:"Category"`
	Size                 int64       `json:"Size"`
	Files                interface{} `json:"Files"`
	Grabs                int64       `json:"Grabs"`
	Description          interface{} `json:"Description"`
	RageID               interface{} `json:"RageID"`
	TVDBID               interface{} `json:"TVDBId"`
	Imdb                 interface{} `json:"Imdb"`
	TMDb                 interface{} `json:"TMDb"`
	Seeders              int64       `json:"Seeders"`
	Peers                int64       `json:"Peers"`
	BannerURL            interface{} `json:"BannerUrl"`
	InfoHash             interface{} `json:"InfoHash"`
	MagnetURI            interface{} `json:"MagnetUri"`
	MinimumRatio         float64     `json:"MinimumRatio"`
	MinimumSeedTime      int64       `json:"MinimumSeedTime"`
	DownloadVolumeFactor float64     `json:"DownloadVolumeFactor"`
	UploadVolumeFactor   float64     `json:"UploadVolumeFactor"`
	Gain                 float64     `json:"Gain"`
}

type ServerConfiguration

type ServerConfiguration struct {
	Notices            []interface{} `json:"notices"`
	Port               int64         `json:"port"`
	External           bool          `json:"external"`
	APIKey             string        `json:"api_key"`
	BlackHoleDirectory string        `json:"blackholedir"`
	UpdateDisabled     bool          `json:"updatedisabled"`
	Prerelease         bool          `json:"prerelease"`
	Password           string        `json:"password"`
	Logging            bool          `json:"logging"`
	BasePathOverride   string        `json:"basepathoverride"`
	OMDBKey            string        `json:"omdbkey"`
	OMDBUrl            string        `json:"omdburl"`
	AppVersion         string        `json:"app_version"`
	CanRunNetCore      bool          `json:"can_run_netcore"`
	ProxyType          int64         `json:"proxy_type"`
	ProxyURL           string        `json:"proxy_url"`
	ProxyPort          int64         `json:"proxy_port"`
	ProxyUsername      string        `json:"proxy_username"`
	ProxyPassword      string        `json:"proxy_password"`
}

Jump to

Keyboard shortcuts

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