Documentation
¶
Index ¶
Constants ¶
View Source
const ( TorrentDownloadsKey = "td" ThePirateBayKey = "tpb" OttsKey = "otts" )
Variables ¶
View Source
var ( Regex = regexp.MustCompile("[[:^ascii:]]") Timeout = time.Duration(15000 * 1000 * 1000) Transmission, _ = transmissionrpc.New( os.Getenv("FLIXCTL_HOST"), strings.Split(os.Getenv("TR_AUTH"), ":")[0], strings.Split(os.Getenv("TR_AUTH"), ":")[1], &transmissionrpc.AdvancedConfig{ HTTPS: true, Port: uint16(port), }) Sources = map[string]string{ TorrentDownloadsKey: "Torrent Downloads", ThePirateBayKey: "The Pirate Bay", OttsKey: "1337x", } TdTorListCh = make(chan []Result) TpbTorListCh = make(chan []Result) OttsTorListCh = make(chan []Result) TdSearchErrCh = make(chan error) TpbSearchErrCh = make(chan error) OttsSearchErrCh = make(chan error) )
Functions ¶
func SearchTorrents ¶
func SearchTorrents(search *Search)
func Status ¶
func Status() []transmissionrpc.Torrent
func TriggerDownload ¶
func TriggerDownload(magnetLink string, downloadDir string) *transmissionrpc.Torrent
Types ¶
Click to show internal directories.
Click to hide internal directories.