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

Moving finished torrent closes torrent #15

Closed
riotopsys opened this issue Mar 16, 2012 · 4 comments
Closed

Moving finished torrent closes torrent #15

riotopsys opened this issue Mar 16, 2012 · 4 comments

Comments

@riotopsys
Copy link

I am using a build compiled from this commit and linked to this version of the library.

I have this line in my configuration


I get this error after hash checking

*  Eclipse Phase - RPG
* [CLOSED]  done       40.3 MB Rate:   0.0 /   0.0 KB Uploaded:     2.7 MB                 [   R: 0.07]
* Inactive: Cannot change the directory of an open download after the files have been moved.

The file does get moved but the torrent becomes stopped.

I'd like to try correcting this error myself but am having difficulty following the code.
Do you have any suggestions on where to look?

@rakshasa
Copy link
Owner

Just read the error message;

@dnsmichi
Copy link

a note on the wiki

http://libtorrent.rakshasa.no/wiki/RTorrentCommonTasks#Movecompletedtorrents

requires an update then.

system.method.set_key = event.download.finished,move_complete,"execute=mv,-u,$d.get_base_path=,/Download/;d.set_directory=/Download/"

=>

system.method.set_key = event.download.finished,move_complete,"d.set_directory=/Download/;execute=mv,-u,$d.get_base_path=,/Download/"

@ralyodio
Copy link

I get this error:
Event 'event.download.finished' failed: Bad return code.

when trying this command:

system.method.set_key = event.download.finished,move_complete,"d.set_directory=/var/torrents/done/;execute=mv,-u,$d.get_base_path=,/var/torrents/done/"

@jimeh
Copy link

jimeh commented Mar 26, 2013

I'm using v0.9.2, and for me @dnsmichi's solution of having d.set_directory called before the move command solved the issue. But it would be nice if the Wiki was updated with details of from which version this is required. Cause when I was using 0.8.9 the variant on the wiki worked fine.

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

No branches or pull requests

5 participants