Documentation
¶
Index ¶
- type Category
- type Crawler
- func (c *Crawler) GetImage(path string) ([]byte, error)
- func (c *Crawler) GetSubcategories(category string) (map[string]string, error)
- func (c *Crawler) Search(params *SearchParams, page string) (*SearchResult, error)
- func (c *Crawler) SearchOptions() (*SearchOptions, error)
- func (c *Crawler) SearchTorrentInfo(id string, date string, path string, season string, firstEpisode string, ...) (*TorrentInfo, error)
- type SearchData
- type SearchOptions
- type SearchParams
- type SearchResult
- type Torrent
- type TorrentInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crawler ¶
type Crawler struct {
// contains filtered or unexported fields
}
Crawler is an Torrent crawler
func NewCrawler ¶
func NewCrawler(cfg *config.ConfigFile) *Crawler
NewCrawler creates a new torrent crawler
func (*Crawler) GetSubcategories ¶
GetSubcategories returns the subcategories
func (*Crawler) Search ¶
func (c *Crawler) Search(params *SearchParams, page string) (*SearchResult, error)
Search returns a search result
func (*Crawler) SearchOptions ¶
func (c *Crawler) SearchOptions() (*SearchOptions, error)
type SearchData ¶
type SearchData struct { All int `json:"all"` Items int `json:"items"` Torrents map[string]map[string]*Torrent `json:"torrents"` Total int `json:"total"` }
func (*SearchData) GetTorrents ¶
func (s *SearchData) GetTorrents() []*Torrent
type SearchOptions ¶
type SearchParams ¶ added in v1.0.0
type SearchParams struct { Categoria string `json:"categoria"` CategoriaTexto string `json:"categoriaTexto"` SubCategoria string `json:"subcategoria"` SubCategoriaTexto string `json:"subcategoriaTexto"` Calidad string `json:"calidad"` CalidadTexto string `json:"calidadTexto"` Palabras string `json:"q"` }
type SearchResult ¶
type SearchResult struct { Data SearchData `json:"data"` Success bool `json:"success"` }
type Torrent ¶
type Torrent struct { Calidad string `json:"calidad"` GUID string `json:"guid"` Imagen string `json:"imagen"` TorrentDateAdded string `json:"torrentDateAdded"` TorrentID string `json:"torrentID"` TorrentName string `json:"torrentName"` TorrentSize string `json:"torrentSize"` }
func (*Torrent) FirstEpisode ¶
func (*Torrent) LastEpisode ¶
type TorrentInfo ¶
Click to show internal directories.
Click to hide internal directories.