A Go package to interact with the JSON API of What.CD / the private tracker framework Gazelle.
A list of all available methods can be found at the official Gazelle documentation. Currently only a limited set of functions for searching/downloading is implemented. For everything else there is the general (c *Client) Do()
.
go get "github.com/xconstruct/gozelle"
g := gozelle.New()
r, err := g.Login("https://what.cd", "user", "pass")
fmt.Println("Hi", r.Response.Username)
r, err = g.SearchTorrents("favorite artist", 0, &gozelle.TorrentsFilter{
Format: "FLAC",
})
fmt.Println("download link:", r.Response.Results[0].Torrents[0].TorrentId)