github mrobinsn/go-rtorrent v1.6.0

latest releases: v1.8.0, v1.7.0
16 months ago

Adds Created Started and Finished timestamps to the Torrent struct.

Example usage:

s := rtorrent.New("https://rutorrent.myhost.com/RPC2", false)
torrents, err := s.GetTorrents(rtorrent.ViewSeeding)
if err != nil {
	panic(err)
}

for _, torrent := range torrents {
	fmt.Printf("Name: %s; Created: %s; Finished: %s; Started: %s\n", torrent.Name, torrent.Created.Format(time.RFC3339), torrent.Finished.Format(time.RFC3339), torrent.Started.Format(time.RFC3339))
}
Name: Some.Torrent.With.All.The.Dates; Created: 2021-03-16T16:35:32-05:00; Finished: 2021-04-07T13:12:53-05:00; Started: 2021-04-07T13:10:00-05:00
Name: Some.Torrent.With.No.Create.Date; Created: 1969-12-31T18:00:00-06:00; Finished: 2021-04-10T09:07:04-05:00; Started: 2021-04-10T09:01:43-05:00

Closed #16 via #17.

Thanks to @justinrush for this contribution.

Don't miss a new go-rtorrent release

NewReleases is sending notifications on new releases.