|
|
| __init__(self,
dlconfig=None) |
|
|
|
|
set_dest_dir(self,
path)
Sets the directory where to save this Download. |
|
|
|
|
get_dest_dir(self)
Gets the directory where to save this Download. |
|
|
|
|
|
|
|
set_video_events(self,
events=[])
Sets which events will be supported with the usercallback set
by set_video_event_callback. |
|
|
|
|
set_video_source(self,
videosource,
authconfig=None)
Provides the live video source for this torrent from an external
source. |
|
|
|
|
set_video_ratelimit(self,
ratelimit)
Sets a limit on the speed at which the video stream is to be read. |
|
|
|
|
set_mode(self,
mode)
Sets the mode of this download. |
|
|
|
|
set_live_aux_seeders(self,
seeders)
Sets a number of live seeders, auxiliary servers that
get high priority at the source server to distribute its content
to others. |
|
|
|
|
get_mode(self)
Returns the mode of this download. |
|
|
|
|
|
|
|
get_video_events(self)
Returns the function that was passed to set_video_events(). |
|
|
|
|
get_video_source(self)
Returns the object that was passed to set_video_source(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_max_speed(self,
direct,
speed)
Sets the maximum upload or download speed for this Download. |
|
|
|
|
get_max_speed(self,
direct)
Returns the configured maximum speed. |
|
|
|
|
|
|
|
|
|
|
set_max_conns(self,
nconns)
Sets the maximum number of connections to connections for this
Download. |
|
|
|
|
get_max_conns(self)
Returns the configured maximum number of connections. |
|
|
|
|
get_coopdl_role(self)
Returns the role which the download plays in a cooperative download,
- COOPDL_ROLE_COORDINATOR: other peers help this download
- COOPDL_ROLE_HELPER: this download helps another peer download faster. |
|
|
|
|
set_coopdl_coordinator_permid(self,
permid)
Calling this method makes this download a helper in a cooperative
download, helping the peer identified by the specified permid. |
|
|
|
|
|
|
|
set_max_uploads(self,
value)
Set the maximum number of uploads to allow at once. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_max_message_length(self,
value)
Maximum message-length prefix to accept over the wire - larger
values get the connection dropped. |
|
|
|
|
|
|
|
set_max_slice_length(self,
value)
Maximum length slice to send to peers, larger requests are ignored. |
|
|
|
|
|
|
|
|
|
|
|
|
|
set_upload_rate_fudge(self,
value)
Time equivalent of writing to kernel-level TCP buffer, for rate
adjustment. |
|
|
|
|
|
|
|
set_tcp_ack_fudge(self,
value)
How much TCP ACK download overhead to add to upload rate
calculations. |
|
|
|
|
|
|
|
|
|
|
|
|
|
set_min_peers(self,
value)
Minimum number of peers to not do rerequesting. |
|
|
|
|
|
|
|
set_http_timeout(self,
value)
Number of seconds to wait before assuming that a HTTP connection
has timed out. |
|
|
|
|
|
|
|
set_check_hashes(self,
value)
Whether to check the integrit of the data on disk using the
hashes from the torrent definition. |
|
|
|
|
|
|
|
|
|
|
|
|
|
set_alloc_rate(self,
value)
Set the rate to allocate space at using background
allocation (DISKALLOC_BACKGROUND). |
|
|
|
|
|
|
|
|
|
|
|
|
|
set_write_buffer_size(self,
value)
The maximum amount of space to use for buffering disk writes
(0 = disabled). |
|
|
|
|
|
|
|
set_breakup_seed_bitfield(self,
value)
Whether to send an incomplete BITFIELD and then fills with HAVE
messages, in order to get around intellectually-challenged Internet
Service Provider manipulation. |
|
|
|
|
|
|
|
set_snub_time(self,
value)
Seconds to wait for data to come in over a connection before
assuming it's semi-permanently choked. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_min_uploads(self,
value)
The number of uploads to fill out to with extra optimistic unchokes. |
|
|
|
|
|
|
|
set_max_files_open(self,
value)
The maximum number of files to keep open at a time, 0 means no
limit. |
|
|
|
|
|
|
|
|
|
|
|
|
|
set_super_seeder(self,
value)
whether to use special upload-efficiency-maximizing routines (only
for dedicated seeds). |
|
|
|
|
|
|
|
set_security(self,
value)
Whether to enable extra security features intended to prevent abuse,
such as checking for multiple connections from the same IP address. |
|
|
|
|
|
|
|
set_auto_kick(self,
value)
Whether to automatically kick/ban peers that send bad data. |
|
|
|
|
|
|
|
set_double_check_writes(self,
value)
Whether to double-check data being written to the disk for errors
(may increase CPU load). |
|
|
|
|
get_double_check_writes(self)
Returns whether double-checking on writes is enabled. |
|
|
|
|
set_triple_check_writes(self,
value)
Whether to thoroughly check data being written to the disk (may
slow disk access). |
|
|
|
|
get_triple_check_writes(self)
Returns whether triple-checking on writes is enabled. |
|
|
|
|
set_lock_files(self,
value)
Whether to lock files the Download is working with. |
|
|
|
|
get_lock_files(self)
Returns whether locking of files is enabled. |
|
|
|
|
|
|
|
|
|
|
set_auto_flush(self,
value)
Minutes between automatic flushes to disk (0 = disabled). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|