From f01ac8f86c7180203651a7da46ef8e0e898a45c2 Mon Sep 17 00:00:00 2001 From: arvidn Date: Tue, 14 Jun 2016 20:10:18 -0400 Subject: [PATCH] fix announce_entry python binding --- ChangeLog | 1 + bindings/python/src/torrent_info.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 80e536e0d..10ac5eeff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 1.1.1 release + * fix bug in python binding of announce_entry * fixed bug related to flag_merge_resume_http_seeds flag in add_torrent_params * fixed inverted priority of incoming piece suggestions * optimize allow-fast logic diff --git a/bindings/python/src/torrent_info.cpp b/bindings/python/src/torrent_info.cpp index 0ca2dd018..78e3547c3 100644 --- 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; }