FIX: Moved the auto-snatcher for torrents into it's own post-processing subdirectory and added a read.me file with instructions

This commit is contained in:
evilhero 2017-04-28 02:26:15 -04:00
parent c5e46e552f
commit 7804a0086a
3 changed files with 30 additions and 1 deletions

View File

@ -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'

View File

@ -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 :)