Public bug reported:

deluged 1.3.5-1ubuntu1
python-libtorrent 0.16.2-0ubuntu1

The python-libtorrent version appears to be incompatible with this
deluged version.


After download, files are never moved to new location, either as programmed to 
do in settings or in using the Gtk UI to move them.

In core/torrent.py, method move_storage at line 834, there's a silent
eating of an exception at the bottom.  It can mask this and cause the
function to return False, failure:

    Failed to move 5dc08dc499eba379b4bc8e364c6b9d0ff2c7f794 to 
/data/%downloaded-unsorted.  Python argument types in
        torrent_handle.move_storage(torrent_handle, unicode)
    did not match C++ signature:
        move_storage(libtorrent::torrent_handle {lvalue}, std::string)

It is the unicodeification of the parameter to self.handle.move_storage
that makes the parameter not match.  The comment at the top of the
function is worrysome.   Unicode should be used internally, but the
function signature for boost signature no longer matches.

As a dumb workaround, I had luck with encoding the parameter to UTF-8.

>   self.handle.move_storage(dest_u.encode("utf-8"))

** Affects: deluge (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1041415

Title:
  move storage does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/deluge/+bug/1041415/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to