Releases: mrobinsn/go-rtorrent
Releases · mrobinsn/go-rtorrent
v1.8.0
- [New functionality] Adds the following methods for interacting with torrents:
StartTorrent
StopTorrent
CloseTorrent
OpenTorrent
PauseTorrent
ResumeTorrent
IsActive
IsOpen
State
- [Tests] Improves the testing retry logic by defining a consistent approach for the tests
v1.7.0
- Update test harness
- Move away from deprecated
linuxserver/rutorrent
Docker image to replacementcrazymax/rtorrent-rutorrent
- Migrate from the discontinued TravisCI.org platform to CircleCI
- Move away from deprecated
- Switch from
d.base_path
to the more consistently populatedd.directory
for reporting a torrent's base path
Special thanks to @damdo for their contributions to update the test files.
v1.6.0
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
Thanks to @justinrush for this contribution.
v1.5.0
Adds the capability to set certain attributes as an item is being added.
For instance to set the label at the same time as adding a torrent:
rtorrentClient.Add("some-torrent-url", DLabel.SetValue("my-label");
Added the types Field and Field Value.
- Field represents the current supported (and used) attributes by this library on "Download Items" (d.* commands) and "File Items" (f.* commands)
- FieldValue is a convenience type to hold and convert a particular Field that one wants to set on a rTorrent item.
Thanks to @burmudar for this contribution.