TorrentManager handles Torrent objects
Bases: deluge.component.Component
TorrentManager contains a list of torrents in the current libtorrent session. This object is also responsible for saving the state of the session for use on restart.
Remove a torrent from the session.
| Parameters: |
|
|---|---|
| Returns: | True if removed successfully, False if not |
| Return type: | bool |
| Raises InvalidTorrentError: | |
if the torrent_id is not in the session |
|
Saves the resume data file with the contents of self.resume_data. If resume_data is None, then we grab the resume_data from the file on disk, else, we update resume_data with self.resume_data and save that to disk.
| Parameter: | resume_data (dict) – the current resume_data, this will be loaded from disk if not provided |
|---|