|
|
__init__(self,
sessconfig=None)
Constructor. |
|
|
|
|
set_state_dir(self,
statedir)
Set the directory to store the Session's state in. |
|
|
|
|
get_state_dir(self)
Returns the directory the Session stores its state in. |
|
|
|
|
set_install_dir(self,
installdir)
Set the directory in which the Tribler Core software is installed. |
|
|
|
|
get_install_dir(self)
Returns the directory the Tribler Core software is installed in. |
|
|
|
|
set_permid_keypair_filename(self,
keypairfilename)
Set the filename containing the Elliptic Curve keypair to use for
PermID-based authentication in this Session. |
|
|
|
|
|
|
|
set_listen_port(self,
port)
Set the UDP and TCP listen port for this Session. |
|
|
|
|
|
|
|
set_ip_for_tracker(self,
value)
IP address to report to the tracker (default = set automatically). |
|
|
|
|
|
|
|
|
|
|
|
|
|
set_upnp_mode(self,
value)
Use to autoconfigure a UPnP router to forward the UDP/TCP listen
port to this host:
* UPNPMODE_DISABLED: Autoconfigure turned off. |
|
|
|
|
|
|
|
set_autoclose_timeout(self,
value)
Time to wait between closing sockets which nothing has been received
on. |
|
|
|
|
|
|
|
|
|
|
|
|
|
set_megacache(self,
value)
Enable megacache databases to cache peers, torrent files and
preferences (default = True). |
|
|
|
|
|
|
|
set_overlay(self,
value)
Enable overlay swarm to enable Tribler's special features
(default = True). |
|
|
|
|
get_overlay(self)
Returns whether overlay-swarm extension is enabled. |
|
|
|
|
|
|
|
|
|
|
set_buddycast(self,
value)
Enable buddycast recommendation system at startup (default = True) |
|
|
|
|
get_buddycast(self)
Returns whether buddycast is enabled at startup. |
|
|
|
|
set_start_recommender(self,
value)
Buddycast can be temporarily disabled via this parameter
(default = True). |
|
|
|
|
|
|
|
set_buddycast_interval(self,
value)
Number of seconds to pause between exchanging preference with a
peer in Buddycast. |
|
|
|
|
|
|
|
|
|
|
|
|
|
set_buddycast_max_peers(self,
value)
Set max number of peers to use for Buddycast recommendations |
|
|
|
|
|
|
|
set_download_help(self,
value)
Enable download helping/cooperative download (default = True). |
|
|
|
|
|
|
|
set_download_help_dir(self,
value)
Set the directory for storing state and content for download
helping (default = Default destination dir (see get_default_dest_dir()
+'downloadhelp'. |
|
|
|
|
|
|
|
set_torrent_collecting(self,
value)
Automatically collect torrents from peers in the network (default =
True). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_torrent_checking(self,
value)
Whether to automatically check the health of collected torrents by
contacting their trackers (default = True). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_dialback(self,
value)
Use other peers to determine external IP address (default = True) |
|
|
|
|
get_dialback(self)
Returns whether to use the dialback mechanism. |
|
|
|
|
|
|
|
|
|
|
set_nickname(self,
value)
The nickname you want to show to others. |
|
|
|
|
|
|
|
set_mugshot(self,
value,
mime='image/jpeg')
The picture of yourself you want to show to others. |
|
|
|
|
get_mugshot(self)
Returns binary image data and mime-type of your picture. |
|
|
|
|
set_peer_icon_path(self,
value)
Directory to store received peer icons (Default is statedir +
STATEDIR_PEERICON_DIR). |
|
|
|
|
|
|
|
|
|
|
|
|
|
set_bartercast(self,
value)
Exchange upload/download statistics with peers (default = True) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_tracker_allowed_ips(self,
value)
Only allow connections from IPs specified in the given file; file
contains subnet data in the format: aa.bb.cc.dd/len. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_tracker_scrape_allowed(self,
value)
Allow scrape access on the internal tracker (with a scrape request
a BitTorrent client can retrieve information about how many peers are
downloading the content. |
|
|
|
|
|
|
|
set_tracker_allow_get(self,
value)
Setting this parameter adds a /file?hash={hash} links to the
overview page that the internal tracker makes available via HTTP
at hostname:listenport. |
|
|
|
|
get_tracker_allow_get(self)
Returns whether to allow HTTP torrent-file downloads from the
internal tracker. |
|
|
|
|
set_tracker_favicon(self,
value)
File containing image/x-icon data to return when browser requests
favicon.ico from the internal tracker. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_tracker_keep_dead(self,
value)
Keep dead torrents after they expire (so they still show up on your... |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_tracker_nat_check(self,
value)
How many times the internal tracker should attempt to check if a
downloader is behind a Network Address Translator (NAT) or firewall. |
|
|
|
|
|
|
|
set_tracker_dfile(self,
value)
File to store recent downloader info in (default = Session state ... |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_tracker_logfile(self,
value)
File to write the tracker logs to (default is NIL: or /dev/null). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_tracker_hupmonitor(self,
value)
Whether to reopen the tracker log file upon receipt of a SIGHUP
signal (Mac/UNIX only). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_tracker_multitracker_enabled(self,
value)
Whether to enable multitracker operation in which multiple
trackers are used to register the peers for a specific torrent. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_tracker_aggregate_forward(self,
value)
Set an URL to which, if set, all non-multitracker requests are
forwarded, with a password added (optional). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_superpeer(self,
value)
Run Session in super peer mode (default = disabled). |
|
|
|
|
get_superpeer(self)
Returns whether the Session runs in superpeer mode. |
|
|
|
|
set_superpeer_file(self,
value)
File with addresses of superpeers (default = install_dir+
Tribler/Core/superpeer.txt). |
|
|
|
|
|
|
|
set_overlay_log(self,
value)
File to log message to in super peer mode (default = No logging) |
|
|
|
|
|
|
|
set_coopdlconfig(self,
dscfg)
Sets the DownloadStartupConfig with which to start Downloads
when you are asked to help in a cooperative download. |
|
|
|
|
get_coopdlconfig(self)
Return the DownloadStartupConfig that is used when helping others
in a cooperative download. |
|
|
|
|
set_nat_detect(self,
value)
Whether to try to detect the type of Network Address Translator
in place. |
|
|
|
|
|
|
|
set_stun_servers(self,
stun_servers)
The addresses of the STUN servers (at least 2) |
|
|
|
|
|
|
|
|
|
|
get_nat_detect(self)
Whether to try to detect the type of Network Address Translator
in place. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_crawler(self,
value)
Handle crawler messages when received (default = True) |
|
|
|
|
get_crawler(self)
Whether crawler messages are processed |
|
|