Master
The Master class is accessible via the fmtorrent.master.master module.
Attributes
Methods
f export_getStatus(self) ...
getStatus() -> dict keyed by torrent name
Each item of the dictionnary is another dictionnary:
{'state': str, 'status': status,
'progress': str, 'peers': int,
'seeds': int, 'seedsmsg': str,
'dist': int, 'uprate': float,
'dnrate': float, 'upamt': int,
'dnamt': int, 'size': int, 't': int,
'msg': str}
Return informations about current torrents, as a dictionnary, hashed by torrent name
f export_pauseTorrent(self, name) ...
pauseTorrent(torrentName) -> int
Pause a torrent, given its name (cf. getStatus() for torrent names)
f export_resumeTorrent(self, name) ...
resumeTorrent(torrentName) -> int
Resume a torrent, given its name (cf. getStatus() for torrent names)
f export_stopTorrent(self, name) ...
stopTorrent(torrentName) -> int
Stop a torrent, given its name (cf. getStatus() for torrent names)
f export_addTorrentFromData(self, fname, data, local=0) ...
addTorrentFromData(torrentFilename, str) -> 1
Add a new torrent to the queue, given the destination filename and its content.
f export_addTorrentFromURL(self, url) ...
addTorrentFromURL(str) -> str
Add a new torrent to the queue, given its full URL. This method returns the filename of the new torrent.
f export_getFeeds(self) ...
getFeeds() -> list of feed names
Fetch the feeds list and return it as a list of string identifiers (like ['foo','bar'])
f export_updateFeed(self, feed) ...
updateFeed(feedName) -> 0|1
Updates the feed identified by its name. If some torrents are found during update, add them to the queue and returns 1. Either returns 0.
See the source for more information.