Changed returnmessage from pirate function

This commit is contained in:
2016-12-10 15:10:19 +01:00
parent 0a4966d896
commit 7b53a9c82a

View File

@@ -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: