Edit
EDIT: Result after changing all the paths:
Fix Amc.txt path, redo results, fix output path, redo results...
ziemowit wrote:Ok, I will try this now, but the scriptis putting lines into this amc.txt file. I will empty it and give it a try anyway.
If it's able to write to that file, then that wouldn't be the problem.. as we already know it can't access something.. so it would automatically rule that out..
In the rename script, which you know works.. are the following pieces of code the same in both scripts?
--output "/volume1/video"
--log-file /volume1/software/Synology/transmission/amc.log
"seriesFormat=/Serien/{n}/{sxe} {t}"
"movieFormat=/Filme/{n} ({y})"
Also, as a thought.. find the value of $TR_TORRENT_DIR/$TR_TORRENT_NAME.. just so we know how it would be appearing in the script..
The only other way, would be that you need to set permissions, but you said you were able to use a simple rename script via CLI.. so to me the issue has to be within the this current script, and the only thing I know to cause that error, especially with java is
(/) at the beginning of a path.. hence why we need to rule it out.
But then again, looking at your error
Code: Select all
/volume1/video/volume1/software/Synology/transmission/amc.txt
the
(/) appears to be a requirement in order to reach the correct path.. as simply adding
(/) would instead return
Code: Select all
/volume1/software/Synology/transmission/amc.txt
So maybe removing
(/) from the beginning of seriesFormat and movieFormat path might resolve the issue.
Essentially what you need to do is rule out all possibilities. If the issue isn't
(/) at the beginning of one of your paths then other than not having the right permissions set, I'm not entirely sure what it could be.
But one thing is clear from your original log
Code: Select all
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': Native library (linux-x86/libmediainfo.so) not found in resource path ([file:/volume1/@appstore/filebot/FileBot.jar])
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Media info and 7-zip appear to be missing.. so you might want to consider resolving that as well.