diff --git a/post-processing/get.conf.sample b/post-processing/torrent-auto-snatch/get.conf.sample similarity index 100% rename from post-processing/get.conf.sample rename to post-processing/torrent-auto-snatch/get.conf.sample diff --git a/post-processing/getlftp.sh b/post-processing/torrent-auto-snatch/getlftp.sh similarity index 93% rename from post-processing/getlftp.sh rename to post-processing/torrent-auto-snatch/getlftp.sh index e7cfead7..f60ffaaf 100755 --- a/post-processing/getlftp.sh +++ b/post-processing/torrent-auto-snatch/getlftp.sh @@ -3,7 +3,7 @@ ##-- start configuration #this needs to be edited to the full path to the get.conf file containing the torrent client information -configfile='' +configfile='/home/hero/mylar/post-processing/torrent-auto-snatch/get.conf' #this is the temporary location where it will make sure the conf is safe for use (by default this should be fine if left alone) configfile_secured='/tmp/get.conf' diff --git a/post-processing/torrent-auto-snatch/read.me b/post-processing/torrent-auto-snatch/read.me new file mode 100644 index 00000000..4a4f3094 --- /dev/null +++ b/post-processing/torrent-auto-snatch/read.me @@ -0,0 +1,29 @@ +#Auto-snatch script for torrent clients (tested against rtorrent, should work with deluge) + +1) Browse to the post-processing/torrent-auto-snatch subdirectory of mylar and make a copy of the get.conf.sample +script and call it get.conf + +2) You can either then startup mylar and exit so that it can regenerate the new value +for the config file - OR - you can manually enter it. +In the config.ini, 2 values need to get changed prior to usage: AUTO_SNATCH and SNATCH_SCRIPT +-- Set auto-snatch to True in the config.ini to allow mylar to automatically monitor the download in your torrent +client upon sending it to the client. Once it's completed, it will then use lftp to snatch the given file and +retrieve it to the desired location on the machine that mylar is running on - thereby allowing for immediate post-processing of remote torrents. +-- SNATCH_SCRIPT has to be set to the full path where the getlftp.sh script resides +(normally it should look like this : snatch_script = /mylar/post-processing/torrent-auto-snatch/getlftp.sh) +save the config.ini + +3) Browse to post-processing/torrent-auto-snatch/get.conf done in step 1 and edit the file. +enter in the required information to connect to your torrent box. Note that this uses ssh to +connect so the host/port/user/pass should relate to your ssh information (if you use ssh-keys, +leave the pass blank - and enter the full path to your public key file for KEYFILE). +The LOCALCD option is the location where you want the script to put whatever it downloads from your +client - ideally, this should be the folder that Mylar is to monitor for new items (Folder Monitor). + +4) Browse to post-processing/torrent-auto-snatch/getlftp.sh and edit the file. +edit the first configuration variable of config_file and point it to the FULL path location where the +get.conf file exists (where is up to you, but it needs to be accessible by the mylar program). +Save the file. + +5) Start up mylar, snatch a torrent and see if it auto-snatches the torrent once it's completed :) +