jackett

package
v0.0.0-...-aba3ae9 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CustomCategoryOffset = 100000
)

Variables

View Source
var (
	CategoryReserved = Category{ID: 0000, Name: "Reserved"}

	CategoryConsole            = Category{ID: 1000, Name: "Console"}
	CategoryConsole_NDS        = Category{ID: 1010, Name: "Console/NDS"}
	CategoryConsole_PSP        = Category{ID: 1020, Name: "Console/PSP"}
	CategoryConsole_Wii        = Category{ID: 1030, Name: "Console/Wii"}
	CategoryConsole_XBox       = Category{ID: 1040, Name: "Console/XBox"}
	CategoryConsole_XBox360    = Category{ID: 1050, Name: "Console/XBox 360"}
	CategoryConsole_Wiiware    = Category{ID: 1060, Name: "Console/Wiiware"}
	CategoryConsole_XBox360DLC = Category{ID: 1070, Name: "Console/XBox 360 DLC"}
	CategoryConsole_PS3        = Category{ID: 1080, Name: "Console/PS3"}
	CategoryConsole_Other      = Category{ID: 1090, Name: "Console/Other"}
	CategoryConsole_3DS        = Category{ID: 1110, Name: "Console/3DS"}
	CategoryConsole_PSVita     = Category{ID: 1120, Name: "Console/PS Vita"}
	CategoryConsole_WiiU       = Category{ID: 1130, Name: "Console/WiiU"}
	CategoryConsole_XBOXOne    = Category{ID: 1140, Name: "Console/XBox One"}
	CategoryConsole_PS4        = Category{ID: 1180, Name: "Console/PS4"}

	CategoryMovies         = Category{ID: 2000, Name: "Movies"}
	CategoryMovies_Foreign = Category{ID: 2010, Name: "Movies/Foreign"}
	CategoryMovies_Other   = Category{ID: 2020, Name: "Movies/Other"}
	CategoryMovies_SD      = Category{ID: 2030, Name: "Movies/SD"}
	CategoryMovies_HD      = Category{ID: 2040, Name: "Movies/HD"}
	CategoryMovies_UHD     = Category{ID: 2045, Name: "Movies/UHD"}
	CategoryMovies_BluRay  = Category{ID: 2050, Name: "Movies/BluRay"}
	CategoryMovies_3D      = Category{ID: 2060, Name: "Movies/3D"}
	CategoryMovies_DVD     = Category{ID: 2070, Name: "Movies/DVD"}
	CategoryMovies_WEBDL   = Category{ID: 2080, Name: "Movies/WEB-DL"}

	CategoryAudio           = Category{ID: 3000, Name: "Audio"}
	CategoryAudio_MP3       = Category{ID: 3010, Name: "Audio/MP3"}
	CategoryAudio_Video     = Category{ID: 3020, Name: "Audio/Video"}
	CategoryAudio_Audiobook = Category{ID: 3030, Name: "Audio/Audiobook"}
	CategoryAudio_Lossless  = Category{ID: 3040, Name: "Audio/Lossless"}
	CategoryAudio_Other     = Category{ID: 3050, Name: "Audio/Other"}
	CategoryAudio_Foreign   = Category{ID: 3060, Name: "Audio/Foreign"}

	CategoryPC               = Category{ID: 4000, Name: "PC"}
	CategoryPC_0day          = Category{ID: 4010, Name: "PC/0day"}
	CategoryPC_ISO           = Category{ID: 4020, Name: "PC/ISO"}
	CategoryPC_Mac           = Category{ID: 4030, Name: "PC/Mac"}
	CategoryPC_MobileOther   = Category{ID: 4040, Name: "PC/Mobile-Other"}
	CategoryPC_Games         = Category{ID: 4050, Name: "PC/Games"}
	CategoryPC_MobileIOS     = Category{ID: 4060, Name: "PC/Mobile-iOS"}
	CategoryPC_MobileAndroid = Category{ID: 4070, Name: "PC/Mobile-Android"}

	CategoryTV             = Category{ID: 5000, Name: "TV"}
	CategoryTV_WEBDL       = Category{ID: 5010, Name: "TV/WEB-DL"}
	CategoryTV_Foreign     = Category{ID: 5020, Name: "TV/Foreign"}
	CategoryTV_SD          = Category{ID: 5030, Name: "TV/SD"}
	CategoryTV_HD          = Category{ID: 5040, Name: "TV/HD"}
	CategoryTV_UHD         = Category{ID: 5045, Name: "TV/UHD"}
	CategoryTV_Other       = Category{ID: 5050, Name: "TV/Other"}
	CategoryTV_Sport       = Category{ID: 5060, Name: "TV/Sport"}
	CategoryTV_Anime       = Category{ID: 5070, Name: "TV/Anime"}
	CategoryTV_Documentary = Category{ID: 5080, Name: "TV/Documentary"}

	CategoryXXX          = Category{ID: 6000, Name: "XXX"}
	CategoryXXX_DVD      = Category{ID: 6010, Name: "XXX/DVD"}
	CategoryXXX_WMV      = Category{ID: 6020, Name: "XXX/WMV"}
	CategoryXXX_XviD     = Category{ID: 6030, Name: "XXX/XviD"}
	CategoryXXX_x264     = Category{ID: 6040, Name: "XXX/x264"}
	CategoryXXX_UHD      = Category{ID: 6045, Name: "XXX/UHD"}
	CategoryXXX_Pack     = Category{ID: 6050, Name: "XXX/Pack"}
	CategoryXXX_ImageSet = Category{ID: 6060, Name: "XXX/ImageSet"}
	CategoryXXX_Other    = Category{ID: 6070, Name: "XXX/Other"}
	CategoryXXX_SD       = Category{ID: 6080, Name: "XXX/SD"}
	CategoryXXX_WEBDL    = Category{ID: 6090, Name: "XXX/WEB-DL"}

	CategoryBooks           = Category{ID: 7000, Name: "Books"}
	CategoryBooks_Mags      = Category{ID: 7010, Name: "Books/Mags"}
	CategoryBooks_EBook     = Category{ID: 7020, Name: "Books/EBook"}
	CategoryBooks_Comics    = Category{ID: 7030, Name: "Books/Comics"}
	CategoryBooks_Technical = Category{ID: 7040, Name: "Books/Technical"}
	CategoryBooks_Other     = Category{ID: 7050, Name: "Books/Other"}
	CategoryBooks_Foreign   = Category{ID: 7060, Name: "Books/Foreign"}

	CategoryOther        = Category{ID: 8000, Name: "Other"}
	CategoryOther_Misc   = Category{ID: 8010, Name: "Other/Misc"}
	CategoryOther_Hashed = Category{ID: 8020, Name: "Other/Hashed"}
)

https://github.com/Jackett/Jackett/wiki/Jackett-Categories

Functions

func GetIndexerName

func GetIndexerName(id string) string

func ParseTorznabURL

func ParseTorznabURL(torznabUrl string) (*torznabURL, error)

func TorznabURL

func TorznabURL(str string) *torznabURL

Types

type Category

type Category = znab.Category

func GetCategoryById

func GetCategoryById(id int) *Category

func ParentCategory

func ParentCategory(c Category) Category

type Channel

type Channel struct {
	znab.Channel[ChannelItem]
}

type ChannelItem

type ChannelItem struct {
	znab.ChannelItem
	Comments       string                `xml:"comments"`
	Grabs          int                   `xml:"grabs"`
	JackettIndexer ItemJackettIndexer    `xml:"jackettindexer"`
	Size           int64                 `xml:"size"`
	Type           IndexerType           `xml:"type"`
	Attributes     znab.ChannelItemAttrs `xml:"http://torznab.com/schemas/2015/feed attr"`
}

func (ChannelItem) ToTorz

func (o ChannelItem) ToTorz() *tznc.Torz

type Client

type Client struct {
	BaseURL    *url.URL
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(conf *ClientConfig) *Client

func (*Client) GetTorznabClient

func (c *Client) GetTorznabClient(id string) *TorznabClient

func (*Client) Request

func (c *Client) Request(method, path string, params request.Context, v request.ResponseContainer) (*http.Response, error)

type ClientConfig

type ClientConfig struct {
	BaseURL    string
	HTTPClient *http.Client
	APIKey     string
	UserAgent  string
}

type Ctx

type Ctx = request.Ctx

type IndexerDetails

type IndexerDetails struct {
	XMLName     xml.Name    `xml:"indexer"`
	ID          string      `xml:"id,attr"`
	Configured  string      `xml:"configured,attr"`
	Title       string      `xml:"title"`
	Description string      `xml:"description"`
	Link        string      `xml:"link"`
	Language    string      `xml:"language"`
	Type        IndexerType `xml:"type"`
	Caps        tznc.Caps   `xml:"caps"`
}

type IndexerType

type IndexerType string
const (
	IndexerTypePublic      IndexerType = "public"
	IndexerTypePrivate     IndexerType = "private"
	IndexerTypeSemiPrivate IndexerType = "semi-private"
)

type IndexersResponse

type IndexersResponse struct {
	XMLName  xml.Name         `xml:"indexers"`
	Indexers []IndexerDetails `xml:"indexer"`
}

type ItemJackettIndexer

type ItemJackettIndexer struct {
	ID   string `xml:"id,attr"`
	Name string `xml:",chardata"`
}

type SearchResponse

type SearchResponse struct {
	XMLName xml.Name `xml:"rss"`
	Version string   `xml:"version,attr,omitempty"`
	Channel Channel  `xml:"channel"`
}

type TorznabClient

type TorznabClient struct {
	*torznab_client.Client
	// contains filtered or unexported fields
}

func (TorznabClient) GetId

func (tc TorznabClient) GetId() string

func (TorznabClient) Search

func (tc TorznabClient) Search(query url.Values) ([]torznab_client.Torz, error)

type TorznabClientConfig

type TorznabClientConfig struct {
	BaseURL    string
	HTTPClient *http.Client
	APIKey     string
	UserAgent  string
	IndexerId  string
}

Jump to

Keyboard shortcuts

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