[Core] Switch move_storage flag to dont_replace

This commit is contained in:
Calum Lind 2017-02-20 18:34:32 +00:00
parent 42ba9086d0
commit 3962c41a55

View file

@ -929,7 +929,7 @@ class Torrent(object):
kwargs = {}
if deluge.common.VersionSplit(lt.version) >= deluge.common.VersionSplit("1.0.0.0"):
kwargs['flags'] = 1 # fail_if_exist
kwargs['flags'] = 2 # dont_replace
dest_bytes = dest.encode('utf-8')
try:
# libtorrent needs unicode object if wstrings are enabled, utf8 bytestring otherwise