Page 1 of 1

Bug: Deluge fails at renaming folders in torrents.

Posted: Tue Sep 13, 2011 5:52 pm
by deity
Client: Windows
Server: Linux

Description: If adding a torrent, eg. a whole series which has Several files ordered into one or more folders these are not possible to rename without corruping the folder structure of the torrent. If i try to rename a folder deluge will see it as a part of the file name instead of a folder.

Image
Here I've added a torent as an example

Image
I change the folder name, and deluge client auto adds a backslash to whatever I put as a name. I thought this was since it was a folder, but apparently it is just a string that gets passed. I tried adding a forward slash to make it Linux compliant, but this just results in a /\

Image
It i quite obvious even in deluge that there are some serious bugs associated with renaming folders but what the hell let's give it the benefit of the doubt....

Image
Ah.. the lovely.. oh.. yeah.. no.. it buches the whole directory structure into the filename, as soon as a folder is renamed deluge will not handle it as a folder anymore but sees it as a substring in the filename of the resulting file.

Re: Bug: Deluge fails at renaming folders in torrents.

Posted: Wed Sep 14, 2011 1:10 am
by Cas
what versions are Deluge on client and server?

Re: Bug: Deluge fails at renaming folders in torrents.

Posted: Sun Sep 25, 2011 12:30 am
by deity
Both are 1.3.3

Re: Bug: Deluge fails at renaming folders in torrents.

Posted: Sun Sep 25, 2011 1:10 am
by Cas
Hmm thought I'd cracked the problem of Windows to Linux file renames for 1.3.3, I'll look into it.

There a ticket somewhere that can be reopened for this so its not forgotten about.

Re: Bug: Deluge fails at renaming folders in torrents.

Posted: Sun Sep 25, 2011 5:31 pm
by Cas
Found the issue and put together a fix: https://github.com/cas--/Deluge/commit/e9d0f94ca7