NAME
irctor-queue - Log RTorrent actions to a file
DESCRIPTION
This program is meant to be called by RTorrent's event handlers. It logs actions to a log file based on the arguments it receives.
Optionally, when RTorrent tells it that a torrent has finished, irctor-queue can inspect the downloaded content and call unrar(1) in these situations:
The content is a single rar file. If the rar archive contains more than one file/directory, a directory will be created to contain them, with the same name as the archive without the ".rar" suffix)
The content is a directory with a rar archive that contains a single file/directory
The content is a directory containing CD[1-9] subdirectories which have rar archives (containing only a single file/directory each)
POE::Component::IRC::Plugin::RTorrentStatus follows the log file created by this program and announces various events on IRC.
CONFIGURATION
.rtorrent.rc must have the following lines in it. /tmp/torrentlog is the log file it will write to. Change it if you want to keep it elsewhere. /home/leech/completed is the directory containing your completed downloads. Change it to fit your setup, or leave it blank if you don't want irctor-queue to unrar your files.
# irctor-queue hooks
system.method.set_key = event.download.inserted_new,irctor_inserted_new,"execute=irctor-queue,/tmp/torrentlog,/home/leech/completed,inserted_new,$d.get_hash=,$d.get_size_bytes=1,$d.get_loaded_file=1"
system.method.set_key = event.download.finished,irctor_finished,"execute=irctor-queue,/tmp/torrentlog,/home/leech/completed,finished,$d.get_hash=,$d.get_size_bytes=1,$d.get_loaded_file=1,$d.get_name=1"
Note: If you want irctor-queue to unrar for you, and you have an RTorrent hook which moves completed downloads to some directory, make sure the name of that hook comes before (according to ASCII sorting) the name of the irctor_finished
hook above. This is necessary because RTorrent executes hooks in alphabetical order.
AUTHOR
Hinrik Örn Sigurðsson, hinrik.sig@gmail.com
LICENSE AND COPYRIGHT
Copyright 2010 Hinrik Örn Sigurðsson
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.