Code: Select all
Linux fileserver 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
Linux fileserver 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
deb [arch=amd64] https://get.filebot.net/deb/ stable main
Code: Select all
[{"eventTrigger":"ON_PACKAGE_FINISHED", "enabled":true, "name":"FileBot", "script":"var amcFile = '/volume1/Downloads/jdtofilebotv2.sh';var path = '/volume1/Downloads/'; callAsync(function() {}, amcFile, path);", "eventTriggerSettings":{}, "id":123654}]
Code: Select all
#!/bin/sh
export JAVA_OPTS="-Xmx256m"
/var/packages/filebot/target/filebot.sh -script 'fn:amc' /volume1/Downloads --output /volume1/Media/ --conflict auto --lang en --def 'clean=y' 'skipExtract=y' 'excludeList=.excludes'
Code: Select all
survivor.au.s05e09.hdtv.x264-fqm.mkv
Code: Select all
Parameter: ut_title = Survivor.AU.S05E09.HDTV.x264-FQM
Parameter: ut_kind = multi
Parameter: ut_file =
Parameter: ut_dir = D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM
Read archive [survivor.au.s05e09.hdtv.x264-fqm.rar] and extract to [D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm\Survivor.AU.S05E09.HDTV.x264-FQM]
Extracting files [D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm.mkv]
Input: D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm.mkv
Group: [tvs:survivor] => [survivor.au.s05e09.hdtv.x264-fqm.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Survivor, survivor au]
Fetching episode data for [Survivor]
Fetching episode data for [#Survivor]
Fetching episode data for [Survivor (UK)]
Fetching episode data for [Survivor (BG)]
Fetching episode data for [Survivor (TR)]
Fetching episode data for [Survivor (GR)]
[COPY] From [D:\Completed\tv shows\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm\Survivor.AU.S05E09.HDTV.x264-FQM\survivor.au.s05e09.hdtv.x264-fqm.mkv] to [F:\TV Shows\Survivor\Survivor Season 05\Survivor S05E09 - Desperate Measures.mkv]
Processed 1 files
Code: Select all
Input: …/Survivor.AU.S05E09.HDTV.x264-FQM.mkv.mp4
Group: [tvs:survivor au] => [Survivor.AU.S05E09.HDTV.x264-FQM.mkv.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [Survivor AU]
Fetching episode data for [Australian Survivor]
…
[TEST] from […/Survivor.AU.S05E09.HDTV.x264-FQM.mkv.mp4] to […/TV Shows/Australian Survivor/Season 05/Australian Survivor - S05E09 - Episode 9.mp4]
…
Code: Select all
{s.pad(2)}x{e.pad(2)}
How would one go about including folders in this?rednoah wrote: ↑26 Jul 2018, 01:17 1.
If you just want to add the collection in front of the plex path, then you don't need if-then-else:If you want a default value if collection is undefined, the I'd write something like this:Code: Select all
{collection+'/'}{plex}
You can't check if collection == null because of theThe Unwind-on-Undefined Behaviour, meaning collection is never null, it's either not null, or it crashes the {expression}.Code: Select all
{any{collection}{'No Collection'}/{plex}
2.
However, the error message you posted is completely unrelated to if-then-else and just tells us that we can't use the / operator between a String object and a File object.
Code: Select all
{plex[0]}/{any{'Movie Collections/'+collection}{az}}/{plex.tail}
Code: Select all
{any{'Movie Collections/'+collection.replaceAll('Collection')}{plex[0]+'/'+az}}/{plex.tail}
Code: Select all
{any{'Movie Collections/'+collection.replaceAll('Collection')}{'Movies/'+az}}/{plex.tail}
Code: Select all
{any{'Movie Collections/'+collection.replaceAll('Collection')}{(allOf{'Movies/'}{az}).join()}}/{plex.tail}