Ok, i must admit that i originally set this addon up wrong. This is mostly due to errors on my system, nothing seemed to work properly and i misunderstood how this addons worked so the point of this post is to explain how it works, what it does and how to set it up.
First of all, I'd like to thank the addon's author, without his help i'd never be writing this post, because it would still be broken.
First, let's talk about auto-label. The purpose of this addon is simple, it labels the torrents automatically so you can browse the webui by "Labels"
The way this works is fairly simple. All you need to do is create subdirectories inside your rtorrent download path. You can organize them any way you please but it generally makes sense to do something like this:
provided your rtorrent download path is /home/wonslung/rtorrent/ you might make the following directories:
Code:
/home/wonslung/rtorrent/Video
/home/wonslung/rtorrent/Video/Tv
/home/wonslung/rtorrent/Video/Tv-720p
/home/wonslung/rtorrent/Video/Movies
/home/wonslung/rtorrent/Music
/home/wonslung/rtorrent/Software
/home/wonslung/rtorrent/Software/Games
then, when you go to download a torrent, choose one of these subdirectories as your download path and the auto-label addon will create a label based on the download path. Forinstance, if you save a torrent to /home/wonslung/rtorrent/Video/TV-720p it will have the label "Video/TV-720p"
Auto-move works on very much the same principle as Auto-label, except you set a directory for finished downloads to be moved to. There can be several reasons you'd want to do this, but let me share with you MY reasons. I have a remote seedbox. I wanted to set up rsync to automatically download my finished torrents, but without this addon, i'd be downloading incomplete torrents which could cause problems. (imagine rsync downloading a file that wasn't done) With this addon, i can set up a directory for Complete torrents and rsync will automatically download them for me without this problem.
Annnnnyways, Let's say you want all finished torrents to be moved to /home/wonslung/Finished/ just create the directory, make sure it's read/write/execute for the user which runs rtorrent and set this as your auto-move dir. Now, just like when you used auto-label earlier, when you select a torrent for download, pick one of the subdirectories. Autolabel will label it, then when the torrent finished downloading, auto-move will move it, replicating the directory structure.
This can also be very useful for people who run rtorrent on thier NAS because you could set your rtorrent download path with directories mirroring that of what you'd like to store. Forinstance, i could imagine something like this:
Code:
/home/wonslung/rtorrent/Video/Television/High.Res/Fringe/Season1/
then set your automove directory to wherever you keep your files, and it will sync them up in this way. Also, this can be very powerful with RSS. you can set the rss download directory to any of the subdirectories in your path and auto-move will move them accordingly.
Some important things: I've found that running rtorrent with a unix socket causes this addon to fail a good portion of the time. I'm not sure why this should be true, but it is.
If you don't have php-cli installed on your system, this addon won't work. The path may also need to be set up in rutorrent, in the config.php
On FreeBSD i needed to create a separate php-cli.ini for php, and set register_argc_argv = on
if you do not have this set for php-cli, this addon will not work. This may not effect people using mod_php but it will effect those using php-cgi (if you use any webserver OTHER than apache, this means you)
If you are having problems, set
Code:
$autodebug_enabled = true;
in rutorrent/plugins/autotools/conf.php
this should create a log in /tmp called /tmp/error.log
First of all, I'd like to thank the addon's author, without his help i'd never be writing this post, because it would still be broken.
First, let's talk about auto-label. The purpose of this addon is simple, it labels the torrents automatically so you can browse the webui by "Labels"
The way this works is fairly simple. All you need to do is create subdirectories inside your rtorrent download path. You can organize them any way you please but it generally makes sense to do something like this:
provided your rtorrent download path is /home/wonslung/rtorrent/ you might make the following directories:
Code:
/home/wonslung/rtorrent/Video
/home/wonslung/rtorrent/Video/Tv
/home/wonslung/rtorrent/Video/Tv-720p
/home/wonslung/rtorrent/Video/Movies
/home/wonslung/rtorrent/Music
/home/wonslung/rtorrent/Software
/home/wonslung/rtorrent/Software/Games
then, when you go to download a torrent, choose one of these subdirectories as your download path and the auto-label addon will create a label based on the download path. Forinstance, if you save a torrent to /home/wonslung/rtorrent/Video/TV-720p it will have the label "Video/TV-720p"
Auto-move works on very much the same principle as Auto-label, except you set a directory for finished downloads to be moved to. There can be several reasons you'd want to do this, but let me share with you MY reasons. I have a remote seedbox. I wanted to set up rsync to automatically download my finished torrents, but without this addon, i'd be downloading incomplete torrents which could cause problems. (imagine rsync downloading a file that wasn't done) With this addon, i can set up a directory for Complete torrents and rsync will automatically download them for me without this problem.
Annnnnyways, Let's say you want all finished torrents to be moved to /home/wonslung/Finished/ just create the directory, make sure it's read/write/execute for the user which runs rtorrent and set this as your auto-move dir. Now, just like when you used auto-label earlier, when you select a torrent for download, pick one of the subdirectories. Autolabel will label it, then when the torrent finished downloading, auto-move will move it, replicating the directory structure.
This can also be very useful for people who run rtorrent on thier NAS because you could set your rtorrent download path with directories mirroring that of what you'd like to store. Forinstance, i could imagine something like this:
Code:
/home/wonslung/rtorrent/Video/Television/High.Res/Fringe/Season1/
then set your automove directory to wherever you keep your files, and it will sync them up in this way. Also, this can be very powerful with RSS. you can set the rss download directory to any of the subdirectories in your path and auto-move will move them accordingly.
Some important things: I've found that running rtorrent with a unix socket causes this addon to fail a good portion of the time. I'm not sure why this should be true, but it is.
If you don't have php-cli installed on your system, this addon won't work. The path may also need to be set up in rutorrent, in the config.php
On FreeBSD i needed to create a separate php-cli.ini for php, and set register_argc_argv = on
if you do not have this set for php-cli, this addon will not work. This may not effect people using mod_php but it will effect those using php-cgi (if you use any webserver OTHER than apache, this means you)
If you are having problems, set
Code:
$autodebug_enabled = true;
in rutorrent/plugins/autotools/conf.php
this should create a log in /tmp called /tmp/error.log