From 1f317900f42b7224cc7010defa24a61bbab701a5 Mon Sep 17 00:00:00 2001
From: Arvid Norberg
For example:
-$ bjam dht-support=on release link=static +$ bjam dht-support=on boost=source release link=static
On Mac OS X, this will produce the following python module:
@@ -75,7 +75,7 @@ ses.listen_on(6881, 6891) e = lt.bdecode(open("test.torrent", 'rb').read()) info = lt.torrent_info(e) -h = ses.add_torrent(info, "./", compact_mode = True) +h = ses.add_torrent(info, "./", storage_mode=storage_mode_sparse) while (not h.is_seed()): s = h.status() diff --git a/docs/python_binding.rst b/docs/python_binding.rst index ffd814abb..2dafca40d 100644 --- a/docs/python_binding.rst +++ b/docs/python_binding.rst @@ -43,7 +43,7 @@ build variants, see `libtorrent build options`_. For example:: - $ bjam dht-support=on release link=static + $ bjam dht-support=on boost=source release link=static On Mac OS X, this will produce the following python module:: @@ -71,7 +71,7 @@ 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) - h = ses.add_torrent(info, "./", compact_mode = True) + h = ses.add_torrent(info, "./", storage_mode=storage_mode_sparse) while (not h.is_seed()): s = h.status()