forked from premiere/premiere-libtorrent
fixed default values being set incorrectly in add_torrent_params through add_magnet_uri in python bindings
This commit is contained in:
parent
08c93978a6
commit
c38adc4183
|
@ -84,6 +84,7 @@
|
||||||
incoming connection
|
incoming connection
|
||||||
* added more detailed instrumentation of the disk I/O thread
|
* added more detailed instrumentation of the disk I/O thread
|
||||||
|
|
||||||
|
* fixed default values being set incorrectly in add_torrent_params through add_magnet_uri in python bindings
|
||||||
* implemented unaligned write (for unbuffered I/O)
|
* implemented unaligned write (for unbuffered I/O)
|
||||||
* fixed broadcast_lsd option
|
* fixed broadcast_lsd option
|
||||||
* fixed udp-socket race condition when using a proxy
|
* fixed udp-socket race condition when using a proxy
|
||||||
|
|
|
@ -39,9 +39,13 @@ namespace {
|
||||||
std::memcpy(&resume_buf[0], &resume[0], resume.size());
|
std::memcpy(&resume_buf[0], &resume[0], resume.size());
|
||||||
p.resume_data = &resume_buf;
|
p.resume_data = &resume_buf;
|
||||||
}
|
}
|
||||||
|
if (params.has_key("storage_mode"))
|
||||||
p.storage_mode = extract<storage_mode_t>(params["storage_mode"]);
|
p.storage_mode = extract<storage_mode_t>(params["storage_mode"]);
|
||||||
|
if (params.has_key("paused"))
|
||||||
p.paused = params["paused"];
|
p.paused = params["paused"];
|
||||||
|
if (params.has_key("auto_managed"))
|
||||||
p.auto_managed = params["auto_managed"];
|
p.auto_managed = params["auto_managed"];
|
||||||
|
if (params.has_key("duplicate_is_error"))
|
||||||
p.duplicate_is_error = params["duplicate_is_error"];
|
p.duplicate_is_error = params["duplicate_is_error"];
|
||||||
|
|
||||||
#ifndef BOOST_NO_EXCEPTIONS
|
#ifndef BOOST_NO_EXCEPTIONS
|
||||||
|
|
Loading…
Reference in New Issue