From 72390ffb82e21d2e8e364a4a147a738258c044ba Mon Sep 17 00:00:00 2001 From: Gorka Olaizola Date: Sun, 18 Oct 2015 10:43:31 +0200 Subject: [PATCH] magnets got stuck until I added force_dht_announce I have tested millions of ways to make magnets work but it worked magically after adding force_dht_announce to the waiting bucle --- Libtorrent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libtorrent.py b/Libtorrent.py index 42b8934..baa0f76 100644 --- a/Libtorrent.py +++ b/Libtorrent.py @@ -169,6 +169,9 @@ class Libtorrent: iterator = 0 while iterator < 100: xbmc.sleep(500) + + 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():