diff --git a/libtorrent/bindings/python/src/alert.cpp b/libtorrent/bindings/python/src/alert.cpp index 5fbefff94..397071e21 100755 --- a/libtorrent/bindings/python/src/alert.cpp +++ b/libtorrent/bindings/python/src/alert.cpp @@ -265,5 +265,10 @@ void bind_alert() ) .def_readonly("resume_data", &save_resume_data_alert::resume_data) ; - + + class_, noncopyable>( + "file_renamed_alert", no_init + ) + .def_readonly("name", &file_renamed_alert::name) + ; } diff --git a/libtorrent/bindings/python/src/torrent_handle.cpp b/libtorrent/bindings/python/src/torrent_handle.cpp index 5733e9f2d..5284ccfab 100755 --- a/libtorrent/bindings/python/src/torrent_handle.cpp +++ b/libtorrent/bindings/python/src/torrent_handle.cpp @@ -267,6 +267,15 @@ void bind_torrent_handle() .def("is_paused", _(&torrent_handle::is_paused)) .def("pause", _(&torrent_handle::pause)) .def("resume", _(&torrent_handle::resume)) + + .def_readonly("is_auto_managed", _(&torrent_handle::is_auto_managed)) + .def("auto_managed", _(&torrent_handle::auto_managed)) + .def_readonly("queue_position", _(&torrent_handle::queue_position)) + .def("queue_position_up", _(&torrent_handle::queue_position_up)) + .def("queue_position_down", _(&torrent_handle::queue_position_down)) + .def("queue_position_top", _(&torrent_handle::queue_position_top)) + .def("queue_position_bottom", _(&torrent_handle::queue_position_bottom)) + #ifndef TORRENT_DISABLE_RESOLVE_COUNTRIES .def("resolve_countries", _(resolve_countries0)) .def("resolve_countries", _(resolve_countries1)) @@ -283,6 +292,7 @@ void bind_torrent_handle() .def("prioritize_files", prioritize_files) .def("use_interface", &torrent_handle::use_interface) .def("write_resume_data", _(&torrent_handle::write_resume_data)) + .def("save_resume_data", _(&torrent_handle::save_resume_data)) .def("force_reannounce", _(force_reannounce0)) .def("force_reannounce", force_reannounce) .def("scrape_tracker", _(&torrent_handle::scrape_tracker)) diff --git a/libtorrent/bindings/python/src/torrent_status.cpp b/libtorrent/bindings/python/src/torrent_status.cpp index acccea668..ebe955a8a 100755 --- a/libtorrent/bindings/python/src/torrent_status.cpp +++ b/libtorrent/bindings/python/src/torrent_status.cpp @@ -68,6 +68,12 @@ void bind_torrent_status() .def_readonly("storage_mode", &torrent_status::storage_mode) .def_readonly("up_bandwidth_queue", &torrent_status::up_bandwidth_queue) .def_readonly("down_bandwidth_queue", &torrent_status::down_bandwidth_queue) + .def_readonly("all_time_upload", &torrent_status::all_time_upload) + .def_readonly("all_time_download", &torrent_status::all_time_download) + .def_readonly("active_time", &torrent_status::active_time) + .def_readonly("seeding_time", &torrent_status::seeding_time) + .def_readonly("seed_rank", &torrent_status::seed_rank) + .def_readonly("last_scrape", &torrent_status::last_scrape) ; enum_("states")