mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-22 04:24:51 +00:00
Fix add_torrent() deprecation and fix tracker_reply_alert to have the
number of peers.
This commit is contained in:
parent
20f76b4eaa
commit
0e73700f15
2 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue