mirror of
				https://github.com/KevinMidboe/Node-Com-Handler.git
				synced 2025-10-29 17:50:27 +00:00 
			
		
		
		
	Changed returnmessage from pirate function
This commit is contained in:
		@@ -167,10 +167,11 @@ def space_format(size):
 | 
			
		||||
	return formated
 | 
			
		||||
 | 
			
		||||
def pirate(message):
 | 
			
		||||
	# TODO handle output from call, and better magnet parse
 | 
			
		||||
	magnet = message.replace('pirate ', '')
 | 
			
		||||
	print(magnet)
 | 
			
		||||
	raw = call(['transmission-remote', '-a', magnet])
 | 
			
		||||
	return raw
 | 
			
		||||
	return 'Added magnet'
 | 
			
		||||
 | 
			
		||||
# This is a repeting loop that runs everytime a message is recv in socket
 | 
			
		||||
while True:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user