Changeset 560318
- Timestamp:
- 09/29/2015 10:18:04 PM (9 years ago)
- Children:
- 4b9dcf
- Parents:
- 244ae87
- git-author:
- Calum Lind <calumlind+deluge@gmail.com> (09/28/2015 06:05:43 PM)
- git-committer:
- Calum Lind <calumlind+deluge@gmail.com> (09/29/2015 10:18:04 PM)
- Location:
- deluge/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
deluge/core/torrent.py
r244ae87 r560318 856 856 return False 857 857 858 kwargs = {} 859 if deluge.common.VersionSplit(lt.version) >= deluge.common.VersionSplit("1.0.0.0"): 860 kwargs['flags'] = 1 # fail_if_exist 858 861 dest_bytes = dest.encode('utf-8') 859 862 try: 860 863 # libtorrent needs unicode object if wstrings are enabled, utf8 bytestring otherwise 861 864 try: 862 self.handle.move_storage(dest )865 self.handle.move_storage(dest, **kwargs) 863 866 except TypeError: 864 self.handle.move_storage(dest_bytes )867 self.handle.move_storage(dest_bytes, **kwargs) 865 868 except Exception, e: 866 869 log.error("Error calling libtorrent move_storage: %s" % e) -
deluge/core/torrentmanager.py
r244ae87 r560318 1065 1065 return 1066 1066 1067 log.error("Torrent %s, %s", torrent_id, decode_string(alert.message())) 1067 1068 if torrent_id in self.waiting_on_finish_moving: 1068 1069 self.waiting_on_finish_moving.remove(torrent_id)
Note:
See TracChangeset
for help on using the changeset viewer.