Hi,
I am hoping someone here can give more help than the rtorrent-pro .qpkg developer on the rtorrent-pro forum where i was told there is no rtorrent.rc and figure it out myself. I know this isnt a dev problem so hoping another QNAP owner can help.
I have rtorrent-pro 0.9.7 installed on my QNAP TS-253 Pro and cannot find the rtorrent.rc file and now been told by the developer it doesnt exist but there are some config files. I also found that there is a folder called scripts that you can put an external script in to run, but this doesnt seem to happen.
I have called the external script finished-filebot.sh and made it executable but when a torrent is finished downloading nothing happens so i assume the script isnt called. Has anyone been successful it getting this to work? If i need to edit one of the config files, which one?
Are you sure that rtorrent and rtorrent-pro are even related? There is no such thing as rtorrent-pro at least as far as the rtorrent project is concerned: https://github.com/rakshasa/rtorrent
rTorrent is a torrent client. ruTorrent is a very popular web-interface for rTorrent. Not sure what rtorrent-pro is supposed to be.
rtorrent-pro is a QNAP package for rtorrent and rutorrent, the link to it is https://qnapclub.eu/pl/qpkg/376.
I am getting one step closer. rtorrent does now call the script but it doesnt seem to work.
I've used the full path to filebot as instructed by the rtorrent-pro dev and it does echo the script to a file, but no log file is created and no files are copied.
My script now is:
#!/bin/sh
printenv > "/share/Public/log-test.txt"
/share/CACHEDEV1_DATA/.qpkg/filebot/bin/filebot.sh -script fn:sysenv > "/share/Public/log-test.txt" 2>&1
# do things that can't possibly not work (unless you don't have /tmp write permission)
date > /tmp/date.txt
whoami > /tmp/whoami.txt
printenv > /tmp/printenv.txt
# try things that might not work
java -version > /tmp/java-version.txt 2>&1
filebot -version > /tmp/filebot-version.txt 2>&1
filebot -script fn:sysinfo > /tmp/filebot-sysinfo.txt 2>&1
filebot -script fn:sysenv > /tmp/filebot-sysenv.txt 2>&1
# Input Parameters
ARG_PATH="$3"
ARG_NAME="$2"
ARG_LABEL="$4"
# Configuration
CONFIG_OUTPUT="/share/Rdownload/medialibrary"
echo /share/CACHEDEV1_DATA/.qpkg/filebot/bin/filebot.sh -script fn:amc /share/Rdownload/complete --output "$CONFIG_OUTPUT/" --action test --conflict auto -non-strict --order Airdate --log all --log-file "$CONFIG_OUTPUT/amc.log" --def excludeList="$CONFIG_OUTPUT/excludes.txt" ut_label="$ARG_LABEL" @/share/Rdownload/scripts/args.txt >> /share/Public/finish.txt
exit 0
The files in tmp have all been created, including the ones that "might not work" and i can share the contents if needed. One thing i have noticed is that although i had the beta latest beta version of filebot installed, because rtorrent-pro has the filebot script included it keeps going back to that version of 4.8.5 which i know hasnt worked for me which is why i upgraded to the beta version and why i was using the full path.
My log-test.txt had this:
Unrecognized option: --illegal-access=permit
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
My only issue seems to be that it doesnt copy the files to the the subfolders like Movies, TV Shows etc, it copies them into the main medialibrary folder. I would also like the excludes file in each subfolder to as thats how i copied existing files to the subfolders. Any ideas?