To begin, I want to say I am a huge fan and have been using Filebot for years. I can usually help myself with the forums but not this time it seems.
OS: Windows 10
Package: Windows 10 App store
My sysenv: https://gist.github.com/The-OMG/56e210d ... 597274eb38
My Screenshots:


I have tried to "repair" and "reset" the app, but it doesn't help.
My issue is that the format expression I am using is rendering a weird string. I get the correct string using the exe windows installer and the linux package but not for the windows app store version.
My expression:
Code: Select all
H:/Team Drives/OMG TV/TV Shows/Processed/TV Shows/Processed/{genres =~ /Children|Family/ ? 'TV.Cartoons_and_Kids' : genres =~ /Animation/ ? 'Anime' : 'TV'}{hd =~ /UHD/ ? '.4K' : ''}{f.isDirectory() ? '.Disc' : ''}/{plex[1].replaceTrailingBrackets()}{" ($y)"}/{any{fn.match(/(.*\.S\d\dE\d\d\..*?\d{3,}p.*)/)}{plex[1].replaceTrailingBrackets()+{" ($y)"}+{" $s00e00"}+{" - $t"}+' - ['+{"$SOURCE-"}+{"$vf "}+{"$HDR "}+{"$ac "}+{"$vc"}+{" $channels"}+{"-$GROUP"}+']'}{fn.replace('-xpost','')}}
Code: Select all
H:/Team Drives/OMG TV/TV Shows/Processed/TV Shows/Processed/ID-0 (2017)/ID-0Script9$_run_closure2$_closure4@52831d82Script9$_run_closure2$_closure5@28032867Script9$_run_closure2$_closure6@6bd6408c - [Script9$_run_closure2$_closure7@3e357d0eScript9$_run_closure2$_closure8@74101847Script9$_run_closure2$_closure9@456146b2Script9$_run_closure2$_closure10@1c6abcb2Script9$_run_closure2$_closure11@9227f3cScript9$_run_closure2$_closure12@7d048c7fScript9$_run_closure2$_closure13@321f11bb]
Code: Select all
TV Shows/Processed/Anime/ID-0 (2017)/ID-0 (2017) S01E01 - Mind Trance - [HDTV-1080p EAC3 x264 2.0]
Script:
Code: Select all
#!/usr/bin/env bash
#set -x
#set -v
MEDIA_FOLDER="$1"
MEDIA_GENRE="$2"
FIND_MODE="d"
mapfile -t -d '' INPUT_ARRAY < <(find "${MEDIA_FOLDER}" -depth -maxdepth 1 -type "${FIND_MODE}" -print0)
filebotFunction() {
filebot -script fn:amc \
--output "/home6/omg/cloud" \
--action move \
--conflict auto \
-non-strict \
"$1" \
--def @/home6/omg/scripts/filebot/args.txt "ut_label=$2"\
excludelist=amc.txt -no-xattr > $HOME/logs/amcOperations.txt 2>&1
}
export -f filebotFunction
find "${MEDIA_FOLDER}" -depth -type "${FIND_MODE}" -print0 |
parallel \
--joblog ~/logs/amc.log \
--use-cores-instead-of-threads \
--retries 10 \
--progress \
--nice 19 \
-0 \
--jobs 5 \
--load 10% filebotFunction ::: "${INPUT_ARRAY[@]}" ::: "$MEDIA_GENRE"
Code: Select all
seriesFormat="TV Shows/Processed/{genres =~ /Children|Family/ ? 'TV.Cartoons_and_Kids' : genres =~ /Animation/ ? 'Anime' : 'TV'}{hd =~ /UHD/ ? '.4K' : ''}{f.isDirectory() ? '.Disc' : ''}/{plex[1].replaceTrailingBrackets()}{" ($y)"}/{any{fn.match(/(.*\.S\d\dE\d\d\..*?\d{3,}p.*)/)}{plex[1].replaceTrailingBrackets()+{" ($y)"}+{" $s00e00"}+{" $t"}+' ['+{"$SOURCE-"}+{"$vf "}+{"$HDR "}+{"$ac "}+{"$vc"}+{" $channels"}+{"-$GROUP"}+']'}{fn.replace('-xpost','')}}"
movieFormat="Movies/{y < 1979 ? '/OLD/' : ''}{(audio.language) =~ /en/ ? '' : {genres =~ /Animation/ ? 'Anime.' : 'Foreign.'}}Movies{genres =~ /Children|Family/ ? '.Kids' : {hd =~ /UHD/ ? '.4K' : '.HD'}}{f.isDirectory() ? '.Disc' : ''}/{plex[1].replaceTrailingBrackets()}{" ($y)"}/{any{fn.match(/(.*\.\d\d\d\d\..*?\d{3,}p.*)/)}{plex[1].replaceTrailingBrackets()+{" ($y)"}+' ['+{"$SOURCE-"}+{"$vf "}+{"$HDR "}+{"$ac "}+{"$vc"}+{" $channels"}+{"-$GROUP"}+']'}{fn.replace('-xpost','')}}"
animeFormat="TV Shows/Processed/Anime{hd =~ /UHD/ ? '.4K' : ''}{f.isDirectory() ? '.Disc' : ''}/{plex[1].replaceTrailingBrackets()}{" ($y)"}/{any{fn.match(/(.*\.S\d\dE\d\d\..*?\d{3,}p.*)/)}{plex[1].replaceTrailingBrackets()+{" ($y)"}+{" $s00e00"}+{" $t"}+' ['+{"$SOURCE-"}+{"$vf "}+{"$HDR "}+{"$ac "}+{"$vc"}+{" $channels"}+{"-$GROUP"}+']'}{fn.replace('-xpost','')}}"
unsorted=n
music=n
artwork=n
clean=y
extras=n
deleteAfterExtract=y
minFileSize=0
minLengthMS=0
skipExtract=y