forked from premiere/premiere-libtorrent
reverted bad python binding change
This commit is contained in:
parent
6fd9cc8535
commit
ce18e3b907
|
@ -161,21 +161,7 @@ void replace_trackers(torrent_handle& h, object trackers)
|
||||||
if (entry == handle<>())
|
if (entry == handle<>())
|
||||||
break;
|
break;
|
||||||
|
|
||||||
dict d;
|
result.push_back(extract<announce_entry const&>(object(entry)));
|
||||||
d = extract<dict>(object(entry));
|
|
||||||
|
|
||||||
std::string url;
|
|
||||||
url = extract<std::string>(d["url"]);
|
|
||||||
|
|
||||||
announce_entry a(url);
|
|
||||||
|
|
||||||
if (d.has_key("tier"))
|
|
||||||
a.tier = extract<int>(d["tier"]);
|
|
||||||
|
|
||||||
if (d.has_key("fail_limit"))
|
|
||||||
a.fail_limit = extract<int>(d["fail_limit"]);
|
|
||||||
|
|
||||||
result.push_back(a);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
allow_threading_guard guard;
|
allow_threading_guard guard;
|
||||||
|
|
Loading…
Reference in New Issue