Page 1 of 1

[Request] check for duplicate files in "move completed dir"?

Posted: Sat May 12, 2012 3:32 pm
by applejuicekiss
is there a way to get deluged 1.3.1 to check for duplicate files in the "move completed folder"?

ideally, deluge would check if the file or directory described in a torrent file already exists in the "move completed folder", and if so perform a hash check and then start seeding if successful. i believe this is the behaviour for the download folder(?).

on my system, new torrents download their files to the folder
/downloads/unfinished/
upon completion the files are automatically moved (using the "move completed folder" setting) up to the folder
/downloads/

currently, if a torrent is added which downloads the file "some.file.01.iso", and the torrent successfully completes, the file is moved and eventually the torrent is removed from deluge. some time later i add the same torrent, or one that describes the same file "some.file.01.iso", and deluge downloads the file from scratch, but fails to move the file up to the completed folder becuase the same filename exists.

it would be better imho if deluge could perform a check in both "/downloads/unfinished/" and also "/downloads/" for the file "some.file.01.iso" upon adding the torrent, and do a hash check so it can seed the file if it already exists.

wow, a long way of asking a simple question, but i would be grateful if anyone has info about a plugin, script, or new version that would change this bahaviour.

deluged 1.3.1
ubuntu server 11.04

Re: check for duplicate files in "move completed folder"?

Posted: Tue May 15, 2012 6:24 pm
by crazycaveman
Apparently something similar has been requested before: http://dev.deluge-torrent.org/ticket/629 The only thing I can think of is it could take a lot of work, especially if you want to include separate directories for labels. However it wouldn't be impossible. Just need to find someone willing to write a plugin for it