forked from pool/libtorrent-rasterbar
51 lines
2.1 KiB
Diff
51 lines
2.1 KiB
Diff
--- a/bindings/python/src/session.cpp
|
|
+++ b/bindings/python/src/session.cpp
|
|
@@ -106,7 +106,7 @@ namespace
|
|
std::string key = extract<std::string>(iterkeys[i]);
|
|
|
|
int sett = setting_by_name(key);
|
|
- if (sett == 0) continue;
|
|
+ if (sett < 0) continue;
|
|
|
|
TORRENT_TRY
|
|
{
|
|
@@ -810,7 +810,7 @@ void bind_session()
|
|
#ifndef TORRENT_NO_DEPRECATE
|
|
.def("add_feed", &add_feed)
|
|
.def("status", allow_threads(<::session::status))
|
|
- .def("settings", &session_get_settings)
|
|
+ .def("settings", <::session::settings)
|
|
.def("set_settings", &session_set_settings)
|
|
#endif
|
|
.def("get_settings", &session_get_settings)
|
|
--- a/bindings/python/src/torrent_handle.cpp
|
|
+++ b/bindings/python/src/torrent_handle.cpp
|
|
@@ -193,9 +193,9 @@ void dict_to_announce_entry(dict d, anno
|
|
if (d.has_key("source"))
|
|
ae.source = extract<int>(d["source"]);
|
|
if (d.has_key("verified"))
|
|
- ae.verified = extract<int>(d["verified"]);
|
|
+ ae.verified = extract<bool>(d["verified"]);
|
|
if (d.has_key("send_stats"))
|
|
- ae.send_stats = extract<int>(d["send_stats"]);
|
|
+ ae.send_stats = extract<bool>(d["send_stats"]);
|
|
}
|
|
|
|
void replace_trackers(torrent_handle& h, object trackers)
|
|
--- a/bindings/python/src/torrent_info.cpp
|
|
+++ b/bindings/python/src/torrent_info.cpp
|
|
@@ -113,10 +113,10 @@ namespace
|
|
|
|
int get_tier(announce_entry const& ae) { return ae.tier; }
|
|
void set_tier(announce_entry& ae, int v) { ae.tier = v; }
|
|
- bool get_fail_limit(announce_entry const& ae) { return ae.fail_limit; }
|
|
+ int get_fail_limit(announce_entry const& ae) { return ae.fail_limit; }
|
|
void set_fail_limit(announce_entry& ae, int l) { ae.fail_limit = l; }
|
|
- bool get_fails(announce_entry const& ae) { return ae.fails; }
|
|
- bool get_source(announce_entry const& ae) { return ae.source; }
|
|
+ int get_fails(announce_entry const& ae) { return ae.fails; }
|
|
+ int get_source(announce_entry const& ae) { return ae.source; }
|
|
bool get_verified(announce_entry const& ae) { return ae.verified; }
|
|
bool get_updating(announce_entry const& ae) { return ae.updating; }
|
|
bool get_start_sent(announce_entry const& ae) { return ae.start_sent; }
|