{ "{edition-$edition}" } gives "Undefined variable"
Posted: 27 May 2024, 07:57
Hi,
Trying to get the editions tag to work for Plex.
Running the following:
Gives:
When run via qBT and checking amc.log gives the following:
How do I get it to stop treating "$edition" as a variable? or am I, once again, fundamentally misunderstanding something...
Thanks
Trying to get the editions tag to work for Plex.
Code: Select all
FileBot 5.1.1 (r9982)
JNA Native: 6.1.4
MediaInfo: 22.06
Tools: NONE
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2024-05-12 (r962)
Groovy: 4.0.14
JRE: OpenJDK Runtime Environment 17.0.3
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 12 Core / 17 GB Max Memory / 49 MB Used Memory
OS: FreeBSD (amd64)
HW: FreeBSD torrent 13.1-RELEASE-p9 FreeBSD 13.1-RELEASE-p9 n245429-296d095698e TRUENAS amd64
STORAGE: zfs [/] @ 222 GB
UID/GID: uid=0(root) gid=0(wheel) groups=0(wheel),5(operator)
DATA: /root/FileBot/data/0
Package: TAR
License: FileBot License P53472058 (Valid-Until: 2024-10-02)
Code: Select all
filebot -script fn:amc /var/db/qbittorrent/claim/Torrents/xHD/<XXX> --output /var/db/qbittorrent/claim/Torrents/zFilebot --action keeplink -non-strict --log-file /var/db/qbittorrent/claim/Torrents/zFilebot/amc.log --def excludeList=/var/db/qbittorrent/claim/Torrents/zFilebot/filebot-amc-exclude.txt movieFormat="/var/db/qbittorrent/claim/Movies/{ hd == /UHD/ ? 'UHD' : 'HD' }/{n} ({y})/{n} ({y} - {vf} - {vcf}.{acf} - {source} -{ n.findMatch(group) ? null : group })" { "{edition-$edition}" }
Code: Select all
edition: Undefined variable.
Code: Select all
...args[<X>] = movieFormat=/var/db/qbittorrent/claim/Movies/{ hd == /UHD/ ? 'UHD' : 'HD' }/{n} ({y})/{n} ({y} - {vf} - {vcf}.{acf} - {source} -{ n.findMatch(group) ? null : group }) { {edition-} }
... ...
Script Error: startup failed:
__script_fd684b1e73cf2b5ea528ccd9e2cbd85f_10: 1: Unexpected input: '{edition-}' @ line 1, column 10.
{edition-}
^
1 error
Failure (×_×)⌒☆
Thanks