Ticket #907: binary-mode.patch

File binary-mode.patch, 589 bytes (added by dzhavakhishvili@gmail.com, 16 years ago)

Patch

  • deluge/ui/gtkui/addtorrentdialog.py

    a b  
    683683            for i, f in enumerate(torrent_filenames):
    684684                client.core.add_torrent_file(
    685685                    os.path.split(f)[-1],
    686                     base64.encodestring(open(f).read()),
     686                    base64.encodestring(open(f, 'rb').read()),
    687687                    torrent_options[i])
    688688        if torrent_magnets:
    689689            client.core.add_torrent_magnets(torrent_magnets, torrent_magnet_options)