unpack -- delay unpack for use with event.download.finished,move_complete

das329717

Member
May 25, 2018
928
0
16
Hey is it possible to delay the auto-unpack of torrents for a configurable number of seconds?

When I use "method.set_key = event.download.finished,move_complete,"execute=mv,-u,$d.get_ba\
se_path=,/complete;d.set_directory=/complete"" in conjunction with unpack (auto-unpack enabled) the auto-unpacking doesn't complete. I think it's probably because the unpacking starts before the move, and then errors b/c of the move.

Should be relatively easy to reproduce, use the key above, substituting "/complete" with whatever directory you want to move the completed torrent to. I'm using libtorrent-0.12.9 and rtorrent-0.8.9.

Thanks,

wam
 

dsouvik215

Member
May 25, 2018
896
0
16
Should be relatively easy to reproduce, use the key above, substituting "/complete" with whatever directory you want to move the completed torrent to. I'm using libtorrent-0.12.9 and rtorrent-0.8.9.
1) You use an invalid command. For 0.8.9 you must *first* say "d.set_directory" and move files *after*. Otherwise you may have a troubles with tracker's statistic and etc. See
http://libtorrent.rakshasa.no/wiki/RTorrentCommonTasks#Movecompletedtorrentstodifferentdirectorydependingonwatchdirectory
BTW, another help section - http://libtorrent.rakshasa.no/wiki/RTorrentCommonTasks#Movecompletedtorrents contain an error.
2) I can't reproduce this. In anyway unpack must be started *after* your move, because it label ("unpack") is greater label of your operation ("move_complete").
 

jith45

Member
May 25, 2018
960
0
16
Hey thank you for the quick reply. I had actually copied from the wiki page that had an error that you referenced.

I'll see how it works doing the set_directory first and mv second.
 

somus1735

Member
May 25, 2018
833
0
16
Hey,

I changed the line in my .rtorrent.rc to:

Code:
method.set_key = event.download.finished,move_complete,"d.set_directory=/complete ;execute=mv,-u,$d.get_base_path=,/complete"
Again the move-after-complete works (as it did when the "execute" call came before the "d.set_directory" call), but the auto-unpack isn't triggering. Is there a way I can enable some log files to see what's not working?
 

shwetha17

Member
May 24, 2018
785
0
16
Say Ctrl+X
log.execute = /tmp/exec.log
into rtorrent console. Or add this line to rtorrent.rc.
 

dsouvik215

Member
May 25, 2018
896
0
16
Say Ctrl+X
log.execute = /tmp/exec.log
into rtorrent console. Or add this line to rtorrent.rc.
I tried both of these things -- if I put "log.execute = /tmp/exec.log" in the .rtorrent.rc and restart rtorrent, the message "Closed log file." appears in the startup messages. If I Ctrl-X and pass "log.execute = /tmp/exec.log" then this same message "Closed log file." appears immediately.

I checked permissions in /tmp and I have read/write; I touched, updated, and deleted my own file there. I also tried putting the log in other places where I also have write permissions (/home/<torrent user>/) and again same message.
 

somus1735

Member
May 25, 2018
833
0
16
Hi,
When try to do unpack a torrent, us get this error

/var/www/rutorrent/plugins/unpack/unrar_dir.sh: 27: unrar: not found

how to fix this?

I have do install the plugin, what is wrong
 

shwetha17

Member
May 24, 2018
785
0
16
You need to install the unrar program itself.

On debian-based systems do "apt-get install unrar"
 

dsouvik215

Member
May 25, 2018
896
0
16
Hi and thanks for the answer,

We tried what you said and these here is the results


Reading package lists... Done
Building dependency tree
Reading state information... Done
Package unrar is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package unrar has no installation candidate

We did exactly what you said, what is the wrong!!!!


Thanks again for your time
 

jith45

Member
May 25, 2018
960
0
16
Hello my friend and really thank you very much for information, it is certainly very useful

But because they did not understand much about all this is easy you to clarify something, we should do everything listed on this page is something special!

We just confused


Thanks again and i hope to have your understanding for this
 

somus1735

Member
May 25, 2018
833
0
16
Update:

We found a tutorial for an unrar-free as stated and the installation was successful

But now we get this one error

unrar: invalid option -- 'i'
Try `unrar --help' or `unrar --usage' for more information.

Typed these 2 commands and got these information

Usage: unrar [OPTION...] ARCHIVE [FILE...] [DESTINATION]
Extract files from rar archives.

-x, --extract Extract files from archive (default)
-t, --list List files in archive
-f, --force Overwrite files when extracting
--extract-newer Only extract newer files from the archive
--extract-no-paths Don't create directories while extracting
-p, --password Decrypt archive using a password
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version

Report bugs to <[email protected]>.


Usage: unrar [-xtfp?V] [--extract] [--list] [--force] [--extract-newer]
[--extract-no-paths] [--password] [--help] [--usage] [--version]
ARCHIVE [FILE...] [DESTINATION]


Any help welcome.... smiley.gif


Thanks
 

jith45

Member
May 25, 2018
960
0
16
Ah, now you're finally at a problem deserving of this forum cheesy.gif. It looks like the command line switches for unrar are diffferent from unrar-free. The dev will either tell you that you must use unrar, or that s/he will update the plugin to be compatible with both unrar and unrar-free. I expect you'll need to get unrar. It's still free, I think debian puts it under "non-free" because it isn't GPL'ed. You're almost there! Here, I googled how to enable the non-free section of the repository and found you this link: http://serverfault.com/questions/240920/how-do-i-enable-non-free-packages-on-debian . With non-free enabled do "apt-get update" followed by "apt-get install unrar" and you should be good to go.