Moving finished torrent closes torrent #15

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

5 participants

@riotopsys

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

I have this line in my configuration
```system.method.set_key = event.download.finished,move_complete,"execute=mv,-u,$d.get_base_path=,~/Videos/;d.set_directory=~/Videos/"


I get this error after hash checking
```[View: main]
*  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
Owner

Just read the error message;

@rakshasa rakshasa closed this Mar 16, 2012
@dnsmichi

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/"

@chovy

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

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