Opened 15 years ago

Closed 14 years ago

#1113 closed feature-request (Fixed)

[PATCH] Don't move storage if while downloading storage was moved already to somewhere else

Reported by: Ideal Owned by:
Priority: minor Milestone: 1.3
Component: Core Version: 1.3.0_dev
Keywords: Cc:

Description

Suppose default download dir ~/dl/incomplete, "move completed" dir ~/dl/.

Sometimes while downloading torrent i can move storage by hand from ~/dl/incomplete to for example ~/movies/. So with current way of how it works - even if i already moved myself storage where i need it to deluge will anyway once again move it from ~/movies/ to "move completed" dir anyway.

This patch adds check so move storage on download completion is done only when download dir of torrent equals to default download dir, in other words - it checks so i didn't move storage myself already where i need it.

Attachments (1)

move-storage.patch (681 bytes ) - added by Ideal 15 years ago.

Download all attachments as: .zip

Change History (11)

by Ideal, 15 years ago

Attachment: move-storage.patch added

comment:1 by Ideal, 15 years ago

Recently i've seen such feature in utorrent, it has "Only move from the default download directory" checkbox in preferences. Is it okay if it'll done this way too in deluge ? I can improve the patch to add such preference.

comment:2 by Ideal, 15 years ago

Some more thoughts about this - well, good for utorrent to have that "Only move from the default download directory" preference, but basically i don't see a need for such a preference. As for me its quite obvious that expected behavior will be always with that preference turned on. I don't see for now a need for that preference to ever be turned off, because why do you ever would want to move storage 2 times - first to your some custom directory by hand (while torrent is downloading), and then by deluge second move storage "pass" to "move completed" directory (after download finishes) ?

comment:3 by Calum, 14 years ago

Milestone: 1.3.0

review patch for adding to master

in reply to:  3 comment:4 by Ideal, 14 years ago

Replying to Cas:

review patch for adding to master

Don't know whether you're speaking to me, but i can say this patch applies and works okay with master..

comment:5 by Chase, 14 years ago

This patch would prevent move completed from working if you are downloading to anywhere but your default download location. I suggest just disabling move completed for that torrent. Or, alternately, have move completed be automatically disabled for a torrent if the storage is manually moved.

in reply to:  5 comment:6 by Ideal, 14 years ago

Replying to gazpachoking:

This patch would prevent move completed from working if you are downloading to anywhere but your default download location.

Yes, this is essentially what it does. As we speak about this here would be maybe good to have real world examples of use cases when you really need move completed when downloading to not a default location.

I suggest just disabling move completed for that torrent. Or, alternately, have move completed be automatically disabled for a torrent if the storage is manually moved.

As an alternative autodisabling of move storage also would work and patch could be changed to this.

comment:7 by Chase, 14 years ago

Real world example this patch would break: TV downloads to /media/drivea/incomplete, moves to /media/drivea/TV. Movies download to /media/driveb/incomplete, moves to /media/driveb/Movies

comment:8 by Ideal, 14 years ago

This is with AutoAdd plugin seems like (or also with it) ? I see..

Okay, any objections to autodisabling of move completed on manual storage move ?

comment:10 by andar, 14 years ago

Resolution: fixed
Status: newclosed

This has been committed in master.

Note: See TracTickets for help on using tickets.