Fix add_torrent() deprecation and fix tracker_reply_alert to have the

number of peers.
This commit is contained in:
Andrew Resch 2007-09-26 01:14:55 +00:00
parent 20f76b4eaa
commit 0e73700f15
2 changed files with 5 additions and 3 deletions

View File

@ -86,7 +86,9 @@ void bind_alert()
class_<tracker_reply_alert, bases<torrent_alert>, noncopyable>(
"tracker_reply_alert", tracker_reply_alert_doc, no_init
);
)
.def_readonly("num_peers", &tracker_reply_alert::num_peers)
;
class_<tracker_announce_alert, bases<torrent_alert>, noncopyable>(
"tracker_announce_alert", tracker_announce_alert_doc, no_init

View File

@ -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
)