The Torrent class defines a single torrent. It is instantiated with a Torrent specific hash, and connection information similar to RTorrent.
Torrent class. This class contains most of the methods specific to a torrent, such as get_name, get_hash, is_complete, get_download_rate, etc.
Close a torrent.
Original libTorrent method: d.close
Erase a torrent.
Original libTorrent method: d.erase
Returns the amount of bytes done.
Original libTorrent method: d.get_bytes_done
Returns the amounts of bytes left to download.
Original libTorrent method: d.get_left_bytes
Returns the current download rate for Torrent.
Original libTorrent method: d.get_down_rate
Returns the total downloaded data for torrent.
Original libTorrent method: d.get_down_total
Returns the full path to the Torrent.
Original libTorrent method: d.get_base_path
Returns the torrent hash. Very useful.
Original libTorrent method: d.get_hash
Returns absolute path to .torrent file.
Original libTorrent method: d.get_loaded_file
Returns the torrent message.
Original libTorrent method: d.get_message
Returns the name of the Torrent.
Original libTorrent method: d.get_name
Returns the ratio for this Torrent. (Download / Upload)
Original libTorrent method: d.get_ratio
Returns the size of the torrent in bytes.
Original libTorrent method: d.get_size_bytes
Returns the size of the torrent in chucks.
Original libTorrent method: d.get_size_chucks
Returns the size of the torrent in files.
Original libTorrent method: d.get_size_files
No clue as to what this returns yet. TODO
Original libTorrent method: d.get_state
Returns the current upload rate for Torrent.
Original libTorrent method: d.get_up_rate
Returns the total uploaded data for torrent.
Original libTorrent method: d.get_up_total
Original libTorrent method: d.views
Original libTorrent method: d.get_hashing_failed
Returns 1 if the torrent is active; 0 when it is not active.
XXX: As of yet we’re not completely sure what ``active’’ means.
Original libTorrent method: d.is_active
Returns 1 if torrent is complete; 0 if it is not complete.
Original libTorrent method: d.get_complete
Returns 1 if the hash has been checked, 0 is otherwise.
Original libTorrent method: d.is_hash_checked
Returns 1 if the hash is currently being checked, 0 otherwise? TODO
Original libTorrent method: d.is_hash_checking
Original libTorrent method: d.get_hashing
Returns 1 if the torrent is open, 0 otherwise.
Original libTorrent method: d.is_open
Open a torrent.
Original libTorrent method: d.open
Pause a torrent.
Original libTorrent method: d.pause
Performs a hash check. Returns 0 immediately.
Original libTorrent method: d.check_hash
Query returns a new TorrentQuery object with the host, port, url and hash(!) from the current Torrent object. The hash will be used as default argument in the TorrentQuery class. See TorrentQuery
Resume a torrent.
Original libTorrent method: d.resume
Start a torrent.
Original libTorrent method: d.start
Stop a torrent.
Original libTorrent method: d.stop