added missing functions to python bindings (file_priority())
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
* added missing functions to python bindings (file_priority())
|
||||||
* fixed low_prio_disk support on linux
|
* fixed low_prio_disk support on linux
|
||||||
* fixed time critical piece accounting in the request queue
|
* fixed time critical piece accounting in the request queue
|
||||||
* fixed semantics of rate_limit_utp to also ignore per-torrent limits
|
* fixed semantics of rate_limit_utp to also ignore per-torrent limits
|
||||||
|
@@ -148,6 +148,16 @@ list file_priorities(torrent_handle& handle)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int file_prioritity0(torrent_handle& h, int index)
|
||||||
|
{
|
||||||
|
return h.file_priority(index);
|
||||||
|
}
|
||||||
|
|
||||||
|
void file_prioritity1(torrent_handle& h, int index, int prio)
|
||||||
|
{
|
||||||
|
return h.file_priority(index, prio);
|
||||||
|
}
|
||||||
|
|
||||||
void replace_trackers(torrent_handle& h, object trackers)
|
void replace_trackers(torrent_handle& h, object trackers)
|
||||||
{
|
{
|
||||||
object iter(trackers.attr("__iter__")());
|
object iter(trackers.attr("__iter__")());
|
||||||
@@ -343,6 +353,8 @@ void bind_torrent_handle()
|
|||||||
.def("piece_priorities", &piece_priorities)
|
.def("piece_priorities", &piece_priorities)
|
||||||
.def("prioritize_files", &prioritize_files)
|
.def("prioritize_files", &prioritize_files)
|
||||||
.def("file_priorities", &file_priorities)
|
.def("file_priorities", &file_priorities)
|
||||||
|
.def("file_priority", &file_prioritity0)
|
||||||
|
.def("file_priority", &file_prioritity1)
|
||||||
.def("use_interface", &torrent_handle::use_interface)
|
.def("use_interface", &torrent_handle::use_interface)
|
||||||
.def("save_resume_data", _(&torrent_handle::save_resume_data), arg("flags") = 0)
|
.def("save_resume_data", _(&torrent_handle::save_resume_data), arg("flags") = 0)
|
||||||
.def("need_save_resume_data", _(&torrent_handle::need_save_resume_data))
|
.def("need_save_resume_data", _(&torrent_handle::need_save_resume_data))
|
||||||
|
Reference in New Issue
Block a user