ithungto / rutorrent

Automatically exported from code.google.com/p/rutorrent
0 stars 0 forks source link

erasedata doesn't delete from watch folder #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
-What steps will reproduce the problem?
1. Delete a torrent without plugins - works fine
2. Delete a torrent with data with erasedata - works partially

-What is the expected output? What do you see instead?

rutorrent should delete the .torrent from watch folder.
Instead the torrent remains undeleted.

-What version of the product are you using?

svn 319

Original issue reported on code.google.com by Carane...@gmail.com on 22 Aug 2009 at 1:24

GoogleCodeExporter commented 9 years ago

Original comment by novik65 on 22 Aug 2009 at 8:10

GoogleCodeExporter commented 9 years ago
1. Erasedata plugin adds functionality to original delete method.
It can't do less then original method.
2. If you add torrents from WebUI - you don't have to worry about .torrent 
files at all.
3. If you add torrents from watch folder - you just have to add "d.delete_tied="
command to scheduler command. Something like this:
schedule=watch,10,0,"load=~/p2p/*.torrent,d.delete_tied="

Original comment by dmrom00 on 27 Aug 2009 at 5:18

GoogleCodeExporter commented 9 years ago
I tried what you suggested, but I'm having some difficulties.

First I will try to clarify the problem some more, so that we are not talking 
about 
different things. To be clear: I don't add torrents through the interface.

When I use basic delete, (1) it deletes the torrent from rtorrent, (2) removes 
the .torrent from rtorrent session directory and (3) removes the .torrent file 
from 
my watch directory 

When I use erasedata (without using your solution), (1) it deletes the torrent 
from 
rtorrent, (2) removes the .torrent file from rtorrent session directory and (3) 
deletes the data. But it doesn't delete the .torrent from watch directory 
(which it 
does when I use basic delete, see above).

The solution you indicate works! BUT I think only because rtorrent unties and 
deletes the .torrent file from watch directory when a torrent is added. 
Torrents do 
load in rtorrent (even after restart, because they are in session directory), 
so 
that's not a problem. The main drawback for me is when handling partially 
downloaded 
files. If I use your solution and restart rtorrent, then rtorrent 
effectively "forgets" that it should only download some files, and downloads 
everything (probably because it the torrent isn't tied to a file in watch 
directory). When not using your solution, rtorrent "remembers" that it 
shouldn't 
download some files.

Here is my partial config to be complete.
without your solution:
schedule = watch_directory,5,5,load_start=~/monitor/*.torrent
schedule = untied_directory,5,5,stop_untied=

with your solution:
schedule = watch_directory,5,5,"load_start=~/monitor/*.torrent,d.delete_tied="
schedule = untied_directory,5,5,stop_untied=

Original comment by Carane...@gmail.com on 27 Aug 2009 at 8:54

GoogleCodeExporter commented 9 years ago
I've made small modification: d.delete_tied is applied with command to "erase 
with
data". Try latest version from SVN, please.

Original comment by dmrom00 on 29 Aug 2009 at 9:25

GoogleCodeExporter commented 9 years ago
Fantastic. That seems to have solved the issue for me!
Thanks for taking the time out to help me with this issue!

It makes the program even better than it already is.
regards

Original comment by Carane...@gmail.com on 29 Aug 2009 at 1:08

GoogleCodeExporter commented 9 years ago

Original comment by dmrom00 on 29 Aug 2009 at 3:19