Add 'set_torrent_prioritize_first_last' method.

This commit is contained in:
Andrew Resch 2008-04-08 00:41:23 +00:00
parent 4423ce667f
commit 051e2ae9e7
2 changed files with 6 additions and 1 deletions

View File

@ -506,6 +506,10 @@ class Core(
"""Sets a torrents file priorities"""
return self.torrents[torrent_id].set_file_priorities(priorities)
def export_set_torrent_prioritize_first_last(self, torrent_id, value):
"""Sets a higher priority to the first and last pieces"""
return self.torrents[torrent_id].set_prioritize_first_last(value)
def export_block_ip_range(self, range):
"""Block an ip range"""
try:

View File

@ -161,7 +161,8 @@ class BaseClient(object):
"set_torrent_private_flag", "set_torrent_file_priorities",
"block_ip_range", "remove_torrent", "pause_torrent", "move_torrent",
"resume_torrent", "force_reannounce", "force_recheck",
"deregister_client", "register_client", "add_torrent_file"]
"deregister_client", "register_client", "add_torrent_file",
"set_torrent_prioritize_first_last"]
def __init__(self):
self.core = _core