updated python binding to match the recently changed torrent_info. reintroduced add_node
This commit is contained in:
@@ -74,13 +74,7 @@ void bind_torrent_info()
|
||||
.def(init<entry const&>())
|
||||
.def(init<sha1_hash const&>())
|
||||
|
||||
.def("create_torrent", &torrent_info::create_torrent)
|
||||
.def("set_comment", &torrent_info::set_comment)
|
||||
.def("set_piece_size", &torrent_info::set_piece_size)
|
||||
.def("set_creator", &torrent_info::set_creator)
|
||||
.def("set_hash", &torrent_info::set_hash)
|
||||
.def("add_tracker", &torrent_info::add_tracker, (arg("url"), arg("tier")=0))
|
||||
.def("add_file", &torrent_info::add_file)
|
||||
.def("add_url_seed", &torrent_info::add_url_seed)
|
||||
|
||||
.def("name", &torrent_info::name, copy)
|
||||
@@ -99,7 +93,6 @@ void bind_torrent_info()
|
||||
.def("files", &files, (arg("storage")=false))
|
||||
|
||||
.def("priv", &torrent_info::priv)
|
||||
.def("set_priv", &torrent_info::set_priv)
|
||||
.def("trackers", range(begin_trackers, end_trackers))
|
||||
|
||||
.def("creation_date", &torrent_info::creation_date)
|
||||
|
Reference in New Issue
Block a user