title: libtorrent API gives error I don't know how to interpret
body: <p>Hello I have a an error that I have attempted with failure to manage</p>
  
  <p>the code that is having trouble is this function</p>
  
  <pre><code>def get_peer_info_from_magnet( magnet, ports, opt ):
      ses = lt.session()
      ses.listen_on( ports[0], ports[1] )
  
      ses.set_download_rate_limit( opt.download_rate  * 1024 )
      ses.set_upload_rate_limit( opt.upload_rate * 1024 )
      h = lt.add_magnet_uri( ses, magnet, {
            'save_path': opt.save_path,
            'storage_mode': lt.storage_mode_t.storage_mode_sparse,
            'seed_mode': True,
            #'tracker_url': opt.tracker_url,
            'paused': False
           } )
  </code></pre>
  
  <p>which is yielding the error </p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/lib/python2.6/multiprocessing/process.py", line 232, in _bootstrap
      self.run()
    File "magnet_info.py", line 45, in run
      self._fetchData( magnet )
    File "magnet_info.py", line 54, in _fetchData
      pi = get_peer_info_from_magnet( magnet, ports, self.options )
    File "magnet_info.py", line 140, in get_peer_info_from_magnet
      'paused': False
  KeyError: 'auto_managed'
  </code></pre>
  
  <p>I looked up this error in the libtorrent documentation and found a method set_upload_mode() which looked promising but I either am not using it correctly or it is not the correct path to go down.</p>
  
  <p>Thank you for your help</p>