pull/1/head
DiMartinoXBMC 2015-07-21 19:38:03 +03:00
parent 4788229538
commit b65db4a13a
1 changed files with 6 additions and 6 deletions

View File

@ -320,12 +320,12 @@ class Libtorrent:
#tribler example never tested #tribler example never tested
#self.session.set_severity_level(self.lt.alert.severity_levels.info) #self.session.set_severity_level(self.lt.alert.severity_levels.info)
self.session.add_extension("ut_pex") #self.session.add_extension("ut_pex")
self.session.add_extension("lt_trackers") #self.session.add_extension("lt_trackers")
self.session.add_extension("metadata_transfer") #self.session.add_extension("metadata_transfer")
self.session.add_extension("ut_metadata") #self.session.add_extension("ut_metadata")
# Ban peers that sends bad data # Ban peers that sends bad data
self.session.add_extension("smart_ban") #self.session.add_extension("smart_ban")
# Session settings # Session settings
session_settings = self.session.settings() session_settings = self.session.settings()
@ -375,7 +375,7 @@ class Libtorrent:
if None == self.magnetLink: if None == self.magnetLink:
self.torrentHandle = self.session.add_torrent({'ti': self.torrentFileInfo, self.torrentHandle = self.session.add_torrent({'ti': self.torrentFileInfo,
'save_path': self.storageDirectory, 'save_path': self.storageDirectory,
#'flags': 0x300, 'flags': 0x300,
# 'storage_mode': self.lt.storage_mode_t.storage_mode_allocate, # 'storage_mode': self.lt.storage_mode_t.storage_mode_allocate,
}) })
else: else: