I have successfully set up my debian server running rtorrent and rutorrent. I also managed to set up the RSS Plugin thanks to this thread. It automatically downloads all series episodes from the given feed adding the label "series".
What I didn't manage to configure is the behavior after download completion:
php -f /var/www/myscript.php -- /media/raid/incoming/New.Episode.S04E17.mkv
I figured that that has to be done in .rtorrent.rc. But since I never really understood the syntax used there, I just got the first part working:
Code:
system.method.set_key = event.download.finished,move_complete_1,"execute=mv,-u,$d.get_base_path=,/media/raid/incoming/;d.set_directory=/media/raid/incoming/"
For the second part I tried out many variations of this:
Code:
system.method.set_key = event.download.finished,move_complete_2,"branch=\"equal={d.get_custom1=,series},execute={php,-f,/var/www/myscript.php,--,$d.get_base_path=}\""
But nothing seemed to work; even leaving out the conditional haven't had any effect:
Code:
system.method.set_key = event.download.finished,move_complete_2,"execute=php,-f,/var/www/myscript.php,--,$d.get_base_path=\""
I get the strong feeling I miss something important on the syntax here, but I cannot figure it out.
Can anybody point me in the right direction? An api reference would be great, though I couldn't find anything on google that would help.
Why isn't this working?
What I didn't manage to configure is the behavior after download completion:
- First: Move all downloads to a different directory
- Then: If the download is labeled "series", a php script should be called with the download's filename and path as parameter, e.g.:
php -f /var/www/myscript.php -- /media/raid/incoming/New.Episode.S04E17.mkv
I figured that that has to be done in .rtorrent.rc. But since I never really understood the syntax used there, I just got the first part working:
Code:
system.method.set_key = event.download.finished,move_complete_1,"execute=mv,-u,$d.get_base_path=,/media/raid/incoming/;d.set_directory=/media/raid/incoming/"
For the second part I tried out many variations of this:
Code:
system.method.set_key = event.download.finished,move_complete_2,"branch=\"equal={d.get_custom1=,series},execute={php,-f,/var/www/myscript.php,--,$d.get_base_path=}\""
But nothing seemed to work; even leaving out the conditional haven't had any effect:
Code:
system.method.set_key = event.download.finished,move_complete_2,"execute=php,-f,/var/www/myscript.php,--,$d.get_base_path=\""
I get the strong feeling I miss something important on the syntax here, but I cannot figure it out.
Can anybody point me in the right direction? An api reference would be great, though I couldn't find anything on google that would help.
Why isn't this working?