-
Notifications
You must be signed in to change notification settings - Fork 176
transmission
If you are using Transmission, perform the following steps to configure postprocessing for "TorrentToMedia":
Copy the autoProcessMedia.cfg.sample to a new file called autoProcessMedia.cfg
and edit the parameters:
i. First step is to set the torrent client you are using. This tells the script which variables to expect when the script is called.
clientAgent = transmission
ii. useLink - Set to hard for physical links, sym for symbolic links, move to move, and no to not use links (copy)
useLink = Choose an option
iii. Other categories/labels defined for your downloader. Does not include CouchPotato, SickBeard, HeadPhones, Mylar categories. (make sure Transmission downloads to categories (Like TV) otherwise nzbtomedia does not know the category & how to process)
categories = music,music_videos,pictures,software
iv. This needs to be where the folder that all the separate applications (Couchpotato, etc.) watch for new content. Category will be added on the end before the content is moved.
outputDirectory = /abs/path/to/complete/
v. Transmission TransmissionHost = ip_of_transmission TransmissionPort = port_of_transmission TransmissionUSR = your username TransmissionPWD = your password
i. This next setting tells the script which file extensions you want to identify and extract. The usual settings are pretty safe.
compressedExtensions: .zip,.rar,.7z,.gz,.bz,.tar,.arj
ii. This setting lists all the media files you want to be processed. The default settings are usually pretty safe.
mediaExtensions: .mkv,.avi,.divx,.xvid,.mov,.wmv,.mp4,.mpg,.mpeg,.vob,.iso
iii. This setting lists all the other file extensions you want to be processed. Any other extensions will be ignored and cleaned up.
metaExtensions: .nfo,.sub,.srt,.jpg,.gif
By default, Transmission does not support blackhole subdirectories. Because of this, you must use the transmission downloader within CouchPotato because this allows you to set the download directory. These settings are correct as of 5a23be22 (3/27/2013 7:42:25 AM)
Set the 'Directory' to the location you want your files to seed from (make sure you add the category name on the end)
Because Sickbeard doesn't have any native support for Transmission, you will need to use the blackhole for tv shows. (The Pirate Bay Branche does have transmission support)
Configure the remaining settings as described in CouchPotato and Sickbeard.
In Transmission add the TorrentToMedia.py script to run on download complete.
OSX and Windows
Go to Preferences->Transfers->Management
Select the script to run on download complete.
/usr/local/nzbToMedia/TorrentToMedia.py
Linux and Headless Installations (transmission-daemon)
On linux systems you will need to edit settings.json
. This is usually located in '/etc/transmission-daemon/settings.json' but it depends on the installation. Under Ubuntu it can be found at ~/.config/transmission-daemon/settings.json
.
Make sure you edit while the daemon is not running.
i. Set the TorrentToMedia.py
script to run after completion of a torrent
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/usr/local/nzbToMedia/TorrentToMedia.py",
**Or you can make a script called run_scripts.sh , this script than can call all the scripts you want transmission to run after a download is done example :
#!/bin/sh
chmod -R 0777 $TR_TORRENT_DIR_
/link_to/unrar_unzip_script.sh_
/link_to/nzbToMedia/TorrentToMedia.py
ii. Set the watch directory for transmission to look in for new .torrent files (if needed)
"watch-dir": "/usr/local/torrents/blackhole/tv",
"watch-dir-enabled": true,
Output from TorrentToMedia will be logged where the scripts reside, in a folder called logs and a file called "nzbtomedia.log".
There is a patch that allows for multiple watch-folders and download-dirs in Transmission. Details of this patch can be found here: https://trac.transmissionbt.com/ticket/4231