1. Erik Svensson
  2. transmissionrpc
  3. Issues
Issue #46 resolved

add_torrent don't take valid base64 encoded torrent file

Anonymous created an issue

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

Comments (2)

  1. Log in to comment