From 0bdb6ae37fbb6ac0e4be1104053db9ff4494274d Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Mon, 28 Nov 2016 23:29:09 +0300 Subject: [PATCH] dht bit fix --- SkorbaLoader.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SkorbaLoader.py b/SkorbaLoader.py index 813c2e0..b58d1f5 100644 --- a/SkorbaLoader.py +++ b/SkorbaLoader.py @@ -156,14 +156,11 @@ class SkorbaLoader: } progressBar = xbmcgui.DialogProgress() progressBar.create(Localization.localize('Please Wait'), Localization.localize('Magnet-link is converting')) - #try: self.torrentHandle = self.session.add_torrent(magnetSettings) - #except: - # self.torrentHandle = self.lt.add_magnet_uri(self.session, self.magnetLink, magnetSettings) iterator = 0 + if self.enable_dht: self.torrentHandle.force_dht_announce() while iterator < 100: xbmc.sleep(500) - if self.enable_dht: self.torrentHandle.force_dht_announce() progressBar.update(iterator, Localization.localize('Please Wait'), Localization.localize('Magnet-link is converting')+'.' * (iterator % 4), ' ') iterator += 1 if progressBar.iscanceled():