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
This commit is contained in:
		
							parent
							
								
									17e878a15f
								
							
						
					
					
						commit
						72390ffb82
					
				@ -169,6 +169,9 @@ class Libtorrent:
 | 
				
			|||||||
        iterator = 0
 | 
					        iterator = 0
 | 
				
			||||||
        while iterator < 100:
 | 
					        while iterator < 100:
 | 
				
			||||||
            xbmc.sleep(500)
 | 
					            xbmc.sleep(500)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            self.torrentHandle.force_dht_announce()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            progressBar.update(iterator, Localization.localize('Please Wait'), Localization.localize('Magnet-link is converting')+'.' * (iterator % 4), ' ')
 | 
					            progressBar.update(iterator, Localization.localize('Please Wait'), Localization.localize('Magnet-link is converting')+'.' * (iterator % 4), ' ')
 | 
				
			||||||
            iterator += 1
 | 
					            iterator += 1
 | 
				
			||||||
            if progressBar.iscanceled():
 | 
					            if progressBar.iscanceled():
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user