Help with Transmission Script

Any questions? Need some help?
Post Reply
Muddro
Posts: 33
Joined: 22 Mar 2014, 21:38

Help with Transmission Script

Post by Muddro »

So I have gotten Filebot working successfully in a Freenas jail. I tested it by running command line rename and it worked. I setup Transmission to run the following script upon completion:

Code: Select all

#!/bin/sh -xu

# Input Parameters
ARG_PATH="$TR_TORRENT_DIR/$TR_TORRENT_NAME"
ARG_NAME="$TR_TORRENT_NAME"
ARG_LABEL="N/A"

/usr/filebot/filebot.sh -script fn:amc --output "/media/" --log-file amc.log --action copy --conflict auto -non-strict -no-xattr --def music=n "ignore=american.dad" pushbullet=XXXXX artwork=n clean=y "seriesFormat=/TV Shows/{n}/Season {s}/{n} - {s00e00} - {t}" "movieFormat=/Movies/{n} ({y})" plex=192.168.1.5 ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL"
This does not appear to work. Any advice?

Also, where can I get updated portable?

Code: Select all

root@transmission_1:/ # /usr/filebot/filebot.sh -script fn:sysinfo              FileBot 4.7.9 (r4984)
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/freebsd-x86-64/libjnidispatch.so) not found in resource path ([file:/usr/filebot/FileBot.jar])
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
Apache Commons VFS: [zip, rar]
Chromaprint: 1.4.2
Extended Attributes: java.io.IOException: UserDefinedFileAttributeView is not supported
Unicode Filesystem: OK
Script Bundle: 2017-05-15 (r500)
Groovy: 2.4.10
JRE: OpenJDK Runtime Environment 1.8.0_131
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 4 GB Max Memory / 49 MB Used Memory
OS: FreeBSD (amd64)
Package: PORTABLE
uname: FreeBSD transmission_1 11.0-STABLE FreeBSD 11.0-STABLE #0 r313908+f4b711d1be8(freenas/11.0-stable): Tue Jun 13 19:17:29 UTC 2017     root@gauntlet:/freenas-11-releng/freenas/_BE/objs/freenas-11-releng/freenas/_BE/os/sys/FreeNAS.amd64  amd64
Done ヾ(@⌒ー⌒@)ノ

User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with Transmission Script

Post by rednoah »

1.
If you're on FreeBSD, you're kinda screwed with the native binaries. Installing mediainfo via package management may or may not help. The docker container is your best option. I'm not sure how well that works on FreeBSD though, because the docker container is for Linux, but presumably it'll work fine on any Linux-like system.

Docker will also take care of updating your docker images (via docker pull <image>) so I highly recommend using docker if native package management is not an option.


2.
4.7.9 is the latest public release. 4.7.10 and 4.7.11 are minor updates that have only been uploaded to the Windows Store. A full release for all platforms is more work, so I'll only do that for major updates.
:idea: Please read the FAQ and How to Request Help.
Post Reply