mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-19 22:58:30 +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
@ -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…
x
Reference in New Issue
Block a user