ilcorsaronero

package
v0.0.0-...-24035bd Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CatAll     Category = 0
	CatFilm             = 1
	CatEBooks           = 6
	CatSerieTv          = 15
)

Available categories

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category int

Category is the category

type Client

type Client struct{}

Client to the corsaro-nero sites

func (*Client) GetMagnet

func (c *Client) GetMagnet(href, hash string) string

GetMagnet retrieves the magnet link from the CorsaroNero href page. In case of error returns the magnet link build with hash.

func (*Client) GetTorrentInfo

func (c *Client) GetTorrentInfo(href string) (*TorrentInfo, error)

GetTorrentInfo is ...

func (*Client) Search

func (c *Client) Search(search string, cat Category) (SearchResults, error)

Search the specified search string anf category

type SearchResult

type SearchResult struct {
	Cat      string
	Name     string
	HREF     string
	Size     string
	Date     string
	Seeds    string
	Leech    string
	Download string
}

A SearchResult contains the informations of a search result.

func (*SearchResult) String

func (r *SearchResult) String() string

type SearchResults

type SearchResults []SearchResult

SearchResults is an ordered list of search results.

type TorrentInfo

type TorrentInfo struct {
	HRef        string
	Magnet      string
	Cat         string
	Size        string
	Hash        string
	AnnounceURL string
	Completato  string
	Aggiunto    string
	Seeds       string
	Leech       string
}

TorrentInfo is

func (*TorrentInfo) PrettyFormat

func (ti *TorrentInfo) PrettyFormat() string

PrettyFormat is ...

Jump to

Keyboard shortcuts

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