Documentation ¶
Index ¶
Constants ¶
View Source
const ( TorrentTypeUnspecified = 0x00 TorrentTypeMovie = 0x01 TorrentTypeTV = 0x02 TorrentTypeGame = 0x04 TorrentTypeBook = 0x08 )
Set of TorrentTypes
Variables ¶
This section is empty.
Functions ¶
func ConvertSize ¶
ConvertSize converts kb,mb,gb to bytes
func GetGoQueryDocument ¶
GetGoQueryDocument gets a goquery document provided the url
func GetTorrentXt ¶
GetTorrentXt returns the xt parameter from a magnet link
Types ¶
type Provider ¶
type Provider struct { ID string Name string SupportedTypes TorrentType Search func(query string, t TorrentType, out chan []*TorrentMeta) SearchShow func(name string, season uint, episode uint, out chan []*TorrentMeta) SearchMovie func(name string, out chan []*TorrentMeta) }
Provider Implementation
type TorrentMeta ¶
type TorrentMeta struct { Name string Magnet string Seeds uint Type TorrentType Size uint }
TorrentMeta stores the information about the torrent
Click to show internal directories.
Click to hide internal directories.