From 6917410d20a82b243496bca2af4f3a4cc46e7988 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 25 Nov 2010 03:07:40 +0000 Subject: [PATCH] expose some missing torrent_status fields to the python bindings --- bindings/python/src/torrent_status.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bindings/python/src/torrent_status.cpp b/bindings/python/src/torrent_status.cpp index f26a6b02c..471359bfc 100644 --- a/bindings/python/src/torrent_status.cpp +++ b/bindings/python/src/torrent_status.cpp @@ -24,6 +24,11 @@ void bind_torrent_status() scope status = class_("torrent_status") .def_readonly("state", &torrent_status::state) .def_readonly("paused", &torrent_status::paused) + .def_readonly("auto_managed", &torrent_status::auto_managed) + .def_readonly("sequential_download", &torrent_status::sequential_download) + .def_readonly("is_seeding", &torrent_status::is_seeding) + .def_readonly("is_finished", &torrent_status::is_finished) + .def_readonly("has_metadata", &torrent_status::has_metadata) .def_readonly("progress", &torrent_status::progress) .def_readonly("progress_ppm", &torrent_status::progress_ppm) .add_property( @@ -85,6 +90,13 @@ void bind_torrent_status() .def_readonly("share_mode", &torrent_status::share_mode) .def_readonly("error", &torrent_status::error) .def_readonly("priority", &torrent_status::priority) + .def_readonly("added_time", &torrent_status::added_time) + .def_readonly("completed_time", &torrent_status::completed_time) + .def_readonly("last_seen_complete", &torrent_status::last_seen_complete) + .def_readonly("time_since_upload", &torrent_status::time_since_upload) + .def_readonly("time_since_download", &torrent_status::time_since_download) + .def_readonly("queue_position", &torrent_status::queue_position) + .def_readonly("need_save_resume", &torrent_status::need_save_resume) ; enum_("states")