I'm trying to setup a script to settings.json to auto unrar a torrent if there is a rar file inside (or .rar, .r00, .r01 etc)
I'm trying to avoid torrentexpander.sh as it creates a lot of unnecessary folders, all I want is to unrar a single file (as it usually is contained inside a tv series torrent) without touching any other files within the rar (.nfos etc).
I've installed unrar in entware using:
#opkg install unrar
So far I've managed to unrar from ssh prompt using the command:
#unrar e torrentfile path/to/extraction/
If I try to implement this in settings.json:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/opt/bin/unrar e '$TR_TORRENT_DIR/$TR_TORRENT_NAME/*.rar' '/tmp/mnt/SamsungHD/torrents/'",
However nothing happens after a rared torrent is downloaded. Am I using this the wrong way? Is there a typo?
Note: I get confirmation through the log that the script is actually executed, but I get no rar file to the specified folder.
I'm trying to avoid torrentexpander.sh as it creates a lot of unnecessary folders, all I want is to unrar a single file (as it usually is contained inside a tv series torrent) without touching any other files within the rar (.nfos etc).
I've installed unrar in entware using:
#opkg install unrar
So far I've managed to unrar from ssh prompt using the command:
#unrar e torrentfile path/to/extraction/
If I try to implement this in settings.json:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/opt/bin/unrar e '$TR_TORRENT_DIR/$TR_TORRENT_NAME/*.rar' '/tmp/mnt/SamsungHD/torrents/'",
However nothing happens after a rared torrent is downloaded. Am I using this the wrong way? Is there a typo?
Note: I get confirmation through the log that the script is actually executed, but I get no rar file to the specified folder.