Autotools move + Auto unpack = problem :(

somus1735

Member
May 25, 2018
833
0
16
Pretty simple, I have auto move enabled to move the finished torrents from /Download to /Concluido (that means finished, in portuguese, hehe), but Auto unpack tries to unpack files on the /Download folder and not on the /Concluido folder.

Is there a way to Make Auto Unpack run on the correct folder after the files are moved?

Here is my log:

--- Success ---

---
php /var/www/rutorrent/plugins/autotools/move.php 6EE40EFDBE59A7824F720B4044D6EB5E5709C4F8 /c/Storage/Torrents/Download/A.Gifted.Man.S01E03.720p.HDTV.X264-DIMENSION A. Gifted.Man.S01E03.720p.HDTV.X264-DIMENSION 1
---
Captured output:
/c/Storage/Torrents/Concluido/A.Gifted.Man.S01E03.720p.HDTV.X264-DIMENSION/
--- Success ---

---
/c/home/daniel/concluido.sh A.Gifted.Man.S01E03.720p.HDTV.X264-DIMENSION
---

--- Success ---

---
php /var/www/rutorrent/plugins/unpack/update.php /c/Storage/Torrents/Download/A.Gifted.Man.S01E03.720p.HDTV.X264-DIMENSION A.Gifted.Man.S01E03.720p.HDTV.X264-DIMENSIO N
---

--- Success ---
 

dsouvik215

Member
May 25, 2018
896
0
16
Finally I got it to work, I had to edit the unpack/init.php file:

From:

Code:
$req = new rXMLRPCRequest(
$theSettings->getOnFinishedCommand( array('unpack'.getUser(),
getCmd('execute').'={'.getPHP().','.$rootPath.'/plugins/unpack/update.php,$'.getCmd('d.get_base_path').
'=,$'.getCmd('d.get_custom1').'=,$'.getCmd('d.get_name').'=,'.getUser().'}')));

To:

Code
$req = new rXMLRPCRequest(
$theSettings->getOnFinishedCommand( array('unpack'.getUser(),
getCmd('execute').'={'.getPHP().','.$rootPath.'/plugins/unpack/update.php,$'.getCmd('d.get_directory_base').
'=,$'.getCmd('d.get_custom1').'=,$'.getCmd('d.get_name').'=,'.getUser().'}')));

Yep, just changed from d.get_base_path to d.get_directory_base and it worked like a charm. Cheers!