diff --git a/bindings/python/src/create_torrent.cpp b/bindings/python/src/create_torrent.cpp index cc4b711d8..13cb61f9e 100644 --- a/bindings/python/src/create_torrent.cpp +++ b/bindings/python/src/create_torrent.cpp @@ -196,7 +196,7 @@ void bind_create_torrent() class_("create_torrent", no_init) .def(init()) - .def(init((arg("ti"), arg("version") = LIBTORRENT_VERSION_NUM))) + .def(init((arg("ti"), arg("use_preformatted") = false))) .def(init((arg("storage"), arg("piece_size") = 0 , arg("pad_file_limit") = -1, arg("flags") = int(libtorrent::create_torrent::optimize_alignment)))) diff --git a/bindings/python/test.py b/bindings/python/test.py index 62b08d9de..9217f70ec 100644 --- a/bindings/python/test.py +++ b/bindings/python/test.py @@ -13,7 +13,7 @@ class test_create_torrent(unittest.TestCase): def test_from_torrent_info(self): ti = lt.torrent_info('unordered.torrent') - ct = lt.create_torrent(ti) + ct = lt.create_torrent(ti, True) entry = ct.generate() content = lt.bencode(entry).strip() with open('unordered.torrent', 'rb') as f: