add_torrent don't take valid base64 encoded torrent file
Thanks for the great module. I found that add_torrent(base64 encoded data) don't accept valid torrent file.
In client.py try: # check if this is base64 data base64.b64decode(torrent).decode('ascii') torrent_data = torrent except Exception: torrent_data = None
I don't know why it is necessary to decode('ascii') to check valid base64 data. There are some torrent file can not be decoded with ascii. I attached a torrent file that can not be decoded with ascii, because of unicode file name in the .torrent file