added option to replace trackers or add trackers when loading trackers from resume data

This commit is contained in:
Arvid Norberg
2011-04-10 21:33:29 +00:00
parent 0c28a3e3ca
commit c0f2d5186f
5 changed files with 28 additions and 1 deletions

View File

@@ -191,6 +191,8 @@ namespace
p.trackerid = extract<std::string>(params["trackerid"]);
if (params.has_key("url"))
p.url = extract<std::string>(params["url"]);
if (params.has_key("merge_resume_trackers"))
p.merge_resume_trackers = params["merge_resume_trackers"];
}
torrent_handle add_torrent(session& s, dict params)