Fix add_torrent() deprecation and fix tracker_reply_alert to have the
number of peers.
This commit is contained in:
parent
20f76b4eaa
commit
0e73700f15
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue