Stingray88
Dabbler
- Joined
- Aug 19, 2015
- Messages
- 38
Hey all,
I'm running FreeNAS 11.2 U3, and have no issues using SABnzbd, Radarr, Sonarr together for automatic Usenet downloads, all working fine there. I've also got Jackett and Transmission setup for automatic Torrent downloads from Sonarr. However the one piece that I've been working on for months without any luck is the automatic extraction of RAR files. I've followed a number of different guides on these forums, Reddit, Transmission forums, and random blogs, but have never been successful in the end.
My latest effort was following this guide as well as this guide. I've confirmed unrar is installed in the Transmission jail and works properly. I've created a script that is executable and owned by the media user/group that Transmission runs as. The script contains this -
#!/bin/bash
#A simple script to extract a rar file inside a directory downloaded by Transmission.
#It uses environment variables passed by the transmission client to find and extract any rar files from a downloaded torrent into the folder they were found in.
find /$TR_TORRENT_DIR/$TR_TORRENT_NAME -name "*.rar" -execdir unrar e -o- "{}" \;
And I've made sure to set these flags within settings.json using the instructions here.
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/path/to/script.sh",
Unfortunately that's as far as I've gotten. I can't tell if the script is running or not after a Torrent finishes, and I can't tell if the script would work properly even if it did run. What are the next steps I should take to make this work?
I'm running FreeNAS 11.2 U3, and have no issues using SABnzbd, Radarr, Sonarr together for automatic Usenet downloads, all working fine there. I've also got Jackett and Transmission setup for automatic Torrent downloads from Sonarr. However the one piece that I've been working on for months without any luck is the automatic extraction of RAR files. I've followed a number of different guides on these forums, Reddit, Transmission forums, and random blogs, but have never been successful in the end.
My latest effort was following this guide as well as this guide. I've confirmed unrar is installed in the Transmission jail and works properly. I've created a script that is executable and owned by the media user/group that Transmission runs as. The script contains this -
#!/bin/bash
#A simple script to extract a rar file inside a directory downloaded by Transmission.
#It uses environment variables passed by the transmission client to find and extract any rar files from a downloaded torrent into the folder they were found in.
find /$TR_TORRENT_DIR/$TR_TORRENT_NAME -name "*.rar" -execdir unrar e -o- "{}" \;
And I've made sure to set these flags within settings.json using the instructions here.
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/path/to/script.sh",
Unfortunately that's as far as I've gotten. I can't tell if the script is running or not after a Torrent finishes, and I can't tell if the script would work properly even if it did run. What are the next steps I should take to make this work?