Merge pull request #345 from paulkernfeld/fix-python-example
Fix small bug in Python example code
This commit is contained in:
commit
d725844547
|
@ -151,9 +151,9 @@ ses.listen_on(6881, 6891)
|
|||
e = lt.bdecode(open("test.torrent", 'rb').read())
|
||||
info = lt.torrent_info(e)
|
||||
|
||||
params = { save_path: '.', \
|
||||
storage_mode: lt.storage_mode_t.storage_mode_sparse, \
|
||||
ti: info }
|
||||
params = { 'save_path': '.', \
|
||||
'storage_mode': lt.storage_mode_t.storage_mode_sparse, \
|
||||
'ti': info }
|
||||
h = ses.add_torrent(params)
|
||||
|
||||
s = h.status()
|
||||
|
|
|
@ -122,9 +122,9 @@ A very simple example usage of the module would be something like this::
|
|||
e = lt.bdecode(open("test.torrent", 'rb').read())
|
||||
info = lt.torrent_info(e)
|
||||
|
||||
params = { save_path: '.', \
|
||||
storage_mode: lt.storage_mode_t.storage_mode_sparse, \
|
||||
ti: info }
|
||||
params = { 'save_path': '.', \
|
||||
'storage_mode': lt.storage_mode_t.storage_mode_sparse, \
|
||||
'ti': info }
|
||||
h = ses.add_torrent(params)
|
||||
|
||||
s = h.status()
|
||||
|
|
Loading…
Reference in New Issue