Skip to content

Releases: mrobinsn/go-rtorrent

v1.8.0

17 Jan 16:13
4ec9ada
Compare
Choose a tag to compare
  • [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

Special thanks to @damdo for this contribution! #20

v1.7.0

29 Dec 20:51
2d0b8a2
Compare
Choose a tag to compare
  • Update test harness
    • Move away from deprecated linuxserver/rutorrent Docker image to replacement crazymax/rtorrent-rutorrent
    • Migrate from the discontinued TravisCI.org platform to CircleCI
  • Switch from d.base_path to the more consistently populated d.directory for reporting a torrent's base path

Special thanks to @damdo for their contributions to update the test files.

v1.6.0

11 Apr 19:41
Compare
Choose a tag to compare

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.

v1.5.0

25 Oct 21:22
e011320
Compare
Choose a tag to compare

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.

v1.4.0

23 Oct 00:14
613b8d5
Compare
Choose a tag to compare

Added two methods:

  • AddStopped(...) - Adds a torrent by URL in stopped state
  • AddTorrentStoped(...) - Adds a torrent file in stopped state

Thanks to @burmudar for this contribution

v1.3.0

18 Aug 20:55
3d733b4
Compare
Choose a tag to compare
  • Added GetTorrent(hash)

v1.2.0

05 May 23:36
9500743
Compare
Choose a tag to compare
  • Added the Size field to the GetStatus(...) call

v1.1.0

01 Apr 03:14
12696af
Compare
Choose a tag to compare
  • Added a GetStatus(Torrent) method to get updated stats about the progress of a Torrent
  • Added DownRate() and UpRate() methods to get the overall download and upload rates of the system, respectively

v1.0.0

27 Mar 01:31
9202379
Compare
Choose a tag to compare
  • Updated to work with latest rtorrent 0.9.x API changes
  • Removed logging

v0.6.0

08 Apr 22:56
86f70f5
Compare
Choose a tag to compare
  • Improved type checking
  • New Functionality: Added Delete(...) call to remove a torrent and associated files