nzbToMedia
To Run the script Manually, passing in the directory, name and category, simply execute as
nzbToMedia.py <Directory> <Name> <Category> <Download_ID> generic
TorrentToMedia.py
To Run the script Manually, passing in the directory, name and category, simply execute as
TorrentToMedia.py <torrent ID (hash)> <torrent file name> <torrent folder>
e.g.:
TorrentToMedia.py "16b2463c1f1dab2ecfb38ac481f044d752349218" "My.Show.S02E01.rar" "D:\queue\processing\tv\torrent\"
for testing purposes the hash ID can be random/gibberish to simply test file operations (though no operation on an active torrent can be performed).
Note, this assumes clientAgent=utorrent
for other clients, you need to pass the string as defined for that client and detailed below.
For Transmission, you need to export the variables into the Environment
export TR_TORRENT_DIR="/share/processing/tv/torrent"
export TR_TORRENT_NAME="My.Show.S02E01.rar"
export TR_TORRENT_HASH="16b2463c1f1dab2ecfb38ac481f044d752349218"
export TR_TORRENT_ID="464475734535433"
./TorrentToMedia.py
for qBittorrent you need to pass this as
./TorrentToMedia.py <torrent folder>|<torrent name>|<Torrent label>|<torrent ID (hash)>
for vuze
C:\full\path\to\nzbToMedia\TorrentToMedia.py "<torrent folder><torrent name><Torrent label><torrent ID (hash)>'single'<file name>
Note. The single
here tells the script that the download is a single media file, and uses the file name to identify it.
for deluge
./TorrentToMedia.py <torrent ID (hash)> <torrent name> <torrent folder>
for rtorrent
./TorrentToMedia.py <torrent folder> <torrent name> <Torrent category> <torrent ID (hash)>