I want a folder structure having the single-letter beginning, but prefer to browse by collection, when collection exists.
I'm using Infuse Pro on tvOS, and browsing the NAS via SMB is slow enough without my old structure being folderless (all 2500 movies, in a single folder "Movies").
I'm using MacOS to run filebot, way quicker than Filebot trying to run on the QNAP CLI.
I'm using (different/similar versions used in CLI and GUI each work, CLI shown):
Code: Select all
"movieFormat=/Volumes/Multimedia/Movies/{n00 = n.sortName().charAt(0); n00.isDigit() ? '0-9' : n00}/{collection+'/'}{n} ({y}) {'['pi+'of'+pn']'} _{certification}_ star-{rating}"
Two problems:
A) The "Fast and the Furious" collection is spread out under "0-9", "T" and "F" folders, then Collection
b) "The" exists in the resultant of either/both of {n} and {collection}.
How do I modify the statement which simply selects the first letter of the Movie name:
Code: Select all
{n00 = n.sortName().charAt(0); n00.isDigit() ? '0-9' : n00}
Such that the outputs from each of following results in the Quoted output:
Fast & Furious (2009) _PG-13_ star-6.3.avi
F/The\ Fast\ and\ the\ Furious\ Collection/Fast & Furious (2009) _PG-13_ star-6.3.avi
2 Fast 2 Furious (2003) _PG-13_ star-6.1.avi
F/The\ Fast\ and\ the\ Furious\ Collection/2\ Fast\ 2\ Furious\ \(2003\)\ _PG-13_\ star-6.1.avi
The Fast and the Furious Tokyo Drift (2006) _PG-13_ CD1 star-6.1.avi
F/The\ Fast\ and\ the\ Furious\ Collection/The Fast and the Furious Tokyo Drift (2006) _PG-13_ CD1 star-6.1.avi
The Curious Case of Benjamin Button (2008) _PG-13_ star-6.9.avi
C/The Curious Case of Benjamin Button (2008) _PG-13_ star-6.9.avi
Inglourious Basterds (2009) _R_ star-7.4.avi
I/Inglourious Basterds (2009) _R_ star-7.4.avi
I imagine that the single-letter
n00 statement can decide if {collection}=null, choose {n}, but remove the "The" from the resultant as well has me getting syntax errors all over the place. And trolling everyone's wonderful Movies filename expressions while interesting, finding the ones that have single-letter folder structures is hard.