diff --git a/libtorrent/bindings/python/src/alert.cpp b/libtorrent/bindings/python/src/alert.cpp index c212ed04d..722cee461 100755 --- a/libtorrent/bindings/python/src/alert.cpp +++ b/libtorrent/bindings/python/src/alert.cpp @@ -86,7 +86,9 @@ void bind_alert() class_, noncopyable>( "tracker_reply_alert", tracker_reply_alert_doc, no_init - ); + ) + .def_readonly("num_peers", &tracker_reply_alert::num_peers) + ; class_, noncopyable>( "tracker_announce_alert", tracker_announce_alert_doc, no_init diff --git a/libtorrent/bindings/python/src/session.cpp b/libtorrent/bindings/python/src/session.cpp index 3717ebadd..6d4855c10 100755 --- a/libtorrent/bindings/python/src/session.cpp +++ b/libtorrent/bindings/python/src/session.cpp @@ -174,8 +174,8 @@ void bind_session() .def( "add_torrent", &add_torrent , ( - arg("torrent_info"), "save_path", arg("resume_data") = entry() - , arg("compact_mode") = true, arg("paused") = false + arg("resume_data") = entry(), arg("compact_mode") = true + , arg("paused") = false ) , session_add_torrent_doc )