Page 1 of 1

How to troubleshoot sorting logic

Posted: 05 Feb 2025, 08:14
by seanz
I've been working on splitting my UHD/ SD-FHD content between two storage paths and during my spot checking have noticed some weird decisions when using ( >> az ) in my rules.

During spot checking I started noticing empty folders and movies seemingly sorted incorrectly. I also noticed the Godfather series had been once grouped into a folder like a collection. I never (purposely) configured rules to do that though I've read it's an option. I'm also assuming some of these differences are results of previous versions of FileBot as I've upgraded over time.

However, with 5.1.6 I'm trying to understand why it has made some decisions with the examples I'll provide below.

The silence of the lambs was sorted in the H folder. (Hannible?)
Color of Space was sorted in the A folder (I'm lost why)

What is FileBot referencing besides basic alphabetical sorting logic that might cause these results? How can I fix it?

Current ruleset for movies

Format: Select all

{ height > 1400 ? 'M' : 'N' }:\Library/{ ~plex.id ** { none{ edition.match(/Theatrical|Remastered/) } ? " {edition-$edition}" : null } % {" [$vf"} % {", $vc"} % {", $bitrate"} % {", $hdr"} % {", $s3d"} % {", $ac $channels]"} % {" [" + fn.match(/REMUX/) + "]"}
 >> az }

Re: How to troubleshoot sorting logic

Posted: 05 Feb 2025, 10:41
by rednoah
The {az} sort collection letter works like so:
rednoah wrote: 31 Aug 2013, 08:01 :idea: Note that {az} is based on the movie {collection} and not necessarily on the movie name. {n[0]} will give you the first letter of the movie name.
:arrow: Please read [SNIPPET] Sort into A-Z folders for details.


e.g.

Code: Select all

H/The Hannibal Lecter Collection/The Silence of the Lambs (1991)
A/Arkham Horror Collection/Color Out of Space (2019)

Re: How to troubleshoot sorting logic

Posted: 06 Feb 2025, 03:35
by seanz
Ah! That makes more sense. I didn't realize I was using the collection sorting. Now I need to know what movies are part of the Arkham Horror Collection.

I guess my next question is when I was resorting the library it didn't recreate the actual collection folder and just put the movie folder into the root folder instead of the example you provided. FileBot did it before w/ the Godfather but no other collections that I've found. It's the only directory named after the collection I've found, which is empty now after those files were relocated.

Code: Select all

H/The Silence of the Lambs (1991)
A/Color Out of Space (2019)
Thanks for pointing me in the right direction.

Re: How to troubleshoot sorting logic

Posted: 06 Feb 2025, 03:37
by seanz
Should have read the link first, I now understand... would have to use { az }/{ collection }/{ n }.