Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erasedata doesn't delete from watch folder #45

Closed
GoogleCodeExporter opened this issue Feb 2, 2016 · 6 comments
Closed

erasedata doesn't delete from watch folder #45

GoogleCodeExporter opened this issue Feb 2, 2016 · 6 comments

Comments

@GoogleCodeExporter
Copy link

-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
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant