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)
Change History (11)
by , 15 years ago
Attachment: | move-storage.patch added |
---|
comment:1 by , 15 years ago
comment:2 by , 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:4 by , 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..
follow-up: 6 comment:5 by , 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.
comment:6 by , 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 , 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 , 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:9 by , 14 years ago
Sounds sane to me. Nice and simple too: http://github.com/gazpachoking/deluge/commit/b6ae125495a7f9db50037667a38769f0af68a18e
comment:10 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This has been committed in master.
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.