--------------------------
- added: min_version argument in rtorrent.rpc.Method, this will ensure
the method will only be available when connected to an rTorrent
client that can actually support it.
- API CHANGES
- General
- RTorrent/Peer/Tracker/File/Torrent/Multicall now requires the actual
instance of RTorrent as and input instead of the XMLRPC
connection for that instance
- instance methods that communicate with rTorrent will raise
an exception if the said method is not supported by the version of
rTorrent you're connected to:
- will raise rtorrent.err.RTorrentVersionError if the method is newer
than the rTorrent client
- will raise MethodError if method isn't listed in RTorrent._rpc_methods
- Methods for RTorrent/Peer/Torrent/etc instances will now be created
dynamically based on the client version of rTorrent that it's connected
to (as opposed to the old way, which deleted the original Method instance,
and therefore was inaccessible to any future connection to rTorrent, even if
the rTorrent client supported said method. This will ensure that methods
aren't available if the client doesn't support it). You can use hasattr()
in order to avoid AttributeError being raised.
- rtorrent.RTorrent
- renamed: get_commands to get_rpc_methods
- rtorrent.rpc.Method
- added: is_available(). This function will check if the Method instance is
supported by the instance of RTorrent specified
- renamed: class_name to _class
- added: class_name, which is now just the name of the class, (_class.__name__)
- rtorrent.peer.Peer
- renamed: banned to is_banned; added support for boolean
- renamed: client_version to get_client_version
- rtorrent.torrent.Torrent
- renamed: incomplete to is_incomplete; added support for boolean