
With 4.9.0 the process seems to be faster and better at matching titles.
Thanks for your help and keep up the great work on this time-saving gem.
Paully
Thanks a lot - it works!rednoah wrote: ↑07 Feb 2019, 14:38 There's no convenience method for this particular use case.
You'll either have to
(A) write your own custom format without using the {plex} binding at all, or
(B) write your own custom format using bits and pieces of the {plex} binding as necessary.
e.g.Code: Select all
Movies/{plex[1]}{" [$vf.$vc.$ac]"}/{plex[2]}{" [$vf.$vc.$ac]"}
Either way, you'll no longer be strictly adhering to the Plex naming scheme, although it'll probably work.
Having some trouble with this syntax, probably due my failure to grasp the vagaries of script/cmdline quoting. Here are the key lines from my bash script:rednoah wrote: ↑27 Oct 2014, 20:54 You can manage your list of explicitly excluded (or included) shows with an external text file.Code: Select all
--filter '!readLines('/path/to/excludes.txt').contains(n)'
Code: Select all
PVR_LOC="/volume1/PVR"
...
sFilter='!readLines('${PVR_LOC}/ExcludeShows.txt').contains(n)'
…
filebot "${sSourceFile}" ${FB_OPTS} -script fn:amc --output "${DEST}" ${sMapper} --filter "${sFilter}" --def seriesFormat="${FB_FMT_SERIES}" --def movieFormat="${FB_FMT_MOVIE}" --def "ut_label=${UTLABEL}">/tmp/fblog.txt 2>&1
Code: Select all
Dec 08 15:03:38: filebot "/volume1/PVR/record/The Carbonaro Effect/The Carbonaro Effect.S01E12.An Elevated Ferret Alert.ts" -non-strict --action hardlink --conflict auto -script fn:amc --output "/volume1/PVR/General" --mapper episode.derive(0,0) --filter "!readLines(/volume1/PVR/ExcludeShows.txt).contains(n)" --def seriesFormat="TV Shows/{ny}/Season {s}/{n}.{s00e00}.{t}" --def movieFormat="" --def "ut_label=TV"
Dec 08 15:03:50: Run script [fn:amc] at [Sun Dec 08 15:03:42 EST 2019]
Dec 08 15:03:50: Parameter: seriesFormat = TV Shows/{ny}/Season {s}/{n}.{s00e00}.{t}
Dec 08 15:03:50: Parameter: movieFormat =
Dec 08 15:03:50: Parameter: ut_label = TV
Dec 08 15:03:50: Argument[0]: /volume1/PVR/record/The Carbonaro Effect/The Carbonaro Effect.S01E12.An Elevated Ferret Alert.ts
Dec 08 15:03:50: Input: /volume1/PVR/record/The Carbonaro Effect/The Carbonaro Effect.S01E12.An Elevated Ferret Alert.ts
Dec 08 15:03:50: Group: {Series=true} => [The Carbonaro Effect.S01E12.An Elevated Ferret Alert.ts]
Dec 08 15:03:50: ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Dec 08 15:03:50: Script2.groovy: 1: unexpected token: PVR @ line 1, column 21.
Dec 08 15:03:50: !readLines(/volume1/PVR/ExcludeShows.txt).contains(n)
Dec 08 15:03:50: ^
Dec 08 15:03:50:
Dec 08 15:03:50: 1 error
Dec 08 15:03:50:
Dec 08 15:03:50: Finished without processing any files
Dec 08 15:03:50: Abort (×_×)
Code: Select all
FileBot 4.8.6 (r6868)
JNA Native: 6.1.0
MediaInfo: 19.04
7-Zip-JBinding: 9.20
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-12-07 (r610)
Groovy: 2.5.8
JRE: OpenJDK Runtime Environment 13.0.1
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 522 MB Max Memory / 26 MB Used Memory
OS: Linux (amd64)
HW: Linux NetStore 3.10.105 #24922 SMP Wed Jul 3 16:37:24 CST 2019 x86_64 GNU/Linux synology_avoton_1815+
STORAGE: ext4 [/] @ 1.2 GB | btrfs [/volume1] @ 7 TB
DATA: /volume1/@appstore/filebot/data/admin
Package: SPK
License: FileBot License P9013368 (Valid-Until: 2020-08-23)
Done ヾ(@⌒ー⌒@)ノ
Code: Select all
!readLines('/path/to/excludes.txt').contains(n)
Code: Select all
!readLines(/volume1/PVR/ExcludeShows.txt).contains(n)
Code: Select all
--filter '!readLines("/path/to/excludes.txt").contains(n)'
Got it working, thanks!rednoah wrote: ↑09 Dec 2019, 10:51 Hence:Code: Select all
--filter '!readLines("/path/to/excludes.txt").contains(n)'
UnseenThreat wrote: ↑14 Dec 2019, 16:39 BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 57
Code: Select all
!readLines("/path/to/excludes.txt").contains(n)
Code: Select all
Alias
Firefly
Code: Select all
![/Alias/, /Firefly/].contains(n)
Code: Select all
filebot -script fn:amc --output "/home/user/Media" --action move --conflict skip -non-strict "/home/user/Stage" --log-file amc.log --def unsorted=y music=y --lang en --filter "!readLines('/home/user/uScripts/excludes.txt').contains(n)"
"
Code: Select all
filebot -list --db TheTVDB --q Watchmen -non-strict
Code: Select all
$ filebot -list --db TheTVDB --q Watchmen -non-strict --filter "!(n ==~ /WatchMojo|Pitchmen| Vekterne|Watchmen: Motion Comic/)"
Apply filter [!(n ==~ /WatchMojo|Pitchmen| Vekterne|Watchmen: Motion Comic/)] on [249] items
Include [Watchmen - 1x01 - It's Summer and We're Running Out of Ice]
Include [Watchmen - 1x02 - Martial Feats of Comanche Horsemanship]
Include [Watchmen - 1x03 - She Was Killed by Space Junk]
Include [Watchmen - 1x04 - If You Don't Like My Story, Write Your Own]
Include [Watchmen - 1x05 - Little Fear of Lightning]
Include [Watchmen - 1x06 - This Extraordinary Being]
Include [Watchmen - 1x07 - An Almost Religious Awe]
Include [Watchmen - 1x08 - A God Walks into Abar.]
Include [Watchmen - 1x09 - See How They Fly]
Watchmen - 1x01 - It's Summer and We're Running Out of Ice
Watchmen - 1x02 - Martial Feats of Comanche Horsemanship
Watchmen - 1x03 - She Was Killed by Space Junk
Watchmen - 1x04 - If You Don't Like My Story, Write Your Own
Watchmen - 1x05 - Little Fear of Lightning
Watchmen - 1x06 - This Extraordinary Being
Watchmen - 1x07 - An Almost Religious Awe
Watchmen - 1x08 - A God Walks into Abar.
Watchmen - 1x09 - See How They Fly
Code: Select all
Vekterne
Vekterne
Code: Select all
$ apt policy default-jre
default-jre:
Installé : 2:1.11-68ubuntu1~18.04.1
Candidat : 2:1.11-68ubuntu1~18.04.1
Table de version :
*** 2:1.11-68ubuntu1~18.04.1 500
500 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
100 /var/lib/dpkg/status
2:1.10-63ubuntu1~02 500
500 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Code: Select all
$ apt show default-jre
same for JavaFX:Depends: default-jre-headless (= 2:1.11-68ubuntu1~18.04.1), openjdk-11-jre
Code: Select all
$ apt policy openjfx
openjfx:
Installé : 11.0.2+1-1~18.04.2
Candidat : 11.0.2+1-1~18.04.2
Table de version :
*** 11.0.2+1-1~18.04.2 500
500 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
100 /var/lib/dpkg/status
8u161-b12-1ubuntu2 500
500 http://fr.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
Code: Select all
déc. 29, 2019 12:10:53 PM net.filebot.Main onStart
GRAVE: Failed to initialize JavaFX
java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
at net.filebot.util.ui.SwingUI.initJavaFX(SwingUI.java:582)
at net.filebot.Main.onStart(Main.java:196)
at net.filebot.Main.lambda$null$0(Main.java:162)
at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:472)
at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:462)
Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
... 5 more
Code: Select all
$ filebot -script fn:sysinfo
FileBot 4.8.5 (r6224)
JNA Native: 5.2.0
MediaInfo: 17.12
p7zip: p7zip Version 16.02 (locale=fr_FR.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz (906EA),ASM,AES-NI)
unrar: UNRAR 5.50 freeware
Chromaprint: fpcalc version 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
GVFS: PlatformGVFS [/run/user/1000/gvfs]
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 1.8.0_232
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 44 MB Used Memory
OS: Linux (amd64)
HW: Linux draco-laptop 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
DATA: /home/draco/.filebot
Package: DEB
License: UNREGISTERED
Done ヾ(@⌒ー⌒@)ノ
Code: Select all
JRE: OpenJDK Runtime Environment 11.0.5
Code: Select all
His Dark Materials HDM