mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-13 11:48:40 +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>(
|
class_<tracker_reply_alert, bases<torrent_alert>, noncopyable>(
|
||||||
"tracker_reply_alert", tracker_reply_alert_doc, no_init
|
"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>(
|
class_<tracker_announce_alert, bases<torrent_alert>, noncopyable>(
|
||||||
"tracker_announce_alert", tracker_announce_alert_doc, no_init
|
"tracker_announce_alert", tracker_announce_alert_doc, no_init
|
||||||
|
|
|
@ -174,8 +174,8 @@ void bind_session()
|
||||||
.def(
|
.def(
|
||||||
"add_torrent", &add_torrent
|
"add_torrent", &add_torrent
|
||||||
, (
|
, (
|
||||||
arg("torrent_info"), "save_path", arg("resume_data") = entry()
|
arg("resume_data") = entry(), arg("compact_mode") = true
|
||||||
, arg("compact_mode") = true, arg("paused") = false
|
, arg("paused") = false
|
||||||
)
|
)
|
||||||
, session_add_torrent_doc
|
, session_add_torrent_doc
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue