Sortname() Stopped Working For Me

Support for Windows users
Post Reply
TVjunkie
Posts: 14
Joined: 21 Nov 2013, 17:36

Sortname() Stopped Working For Me

Post by TVjunkie »

Hi.

For a while now, my CLI --Format Sortname() is not working the way it used to. A search showed the release comment that it's default behavior changed in Filebot 4.6.1.

"* Changed String.sortName() default behaviour"

The following command is part of a AutoHotKey script, that files a downloaded TV show.

filebot -rename "%P_Download_Location%" --action copy --log all --db thetvdb --log-file %Logfile% --conflict slip -non-strict -no-xattr --format "%MainTVLibRoot%/%P_genre%/{n.replaceTrailingBrackets().sortName().replaceTrailingBrackets()} (+)/Season {s.pad(2)}/{n.replaceTrailingBrackets()}.{S00E00}.{t.replaceAll(/[´‘’ʻ]/`, ""'"")}"

In the past, a show like say, The Golden Girls, would be filed like:
/Comedy/Golden Girls, The (+)/Season 01/The Golden Girls.S01E01.Etc

(the (+) is just an indicator to highlight current shows in the media library)

Now, the "The"'s are just being dropped altogether, changing the filed path to:
/Comedy/Golden Girls (+)/Season 01/The Golden Girls.S01E01.Etc

Is there something that I'm doing that's not compatible with Filebot 4.6.1? Or is there something I should be doing differently now that Sortname()'s "default behavior" has changed?

As always, Thanks for the wonderful application, and your continuing support!
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sortname() Stopped Working For Me

Post by rednoah »

Yes, the new behaviour is the new default.

If you want the old behaviour, then you have to change your format a little bit (link below).

@see viewtopic.php?f=5&t=211
:idea: Please read the FAQ and How to Request Help.
TVjunkie
Posts: 14
Joined: 21 Nov 2013, 17:36

Re: Sortname() Stopped Working For Me

Post by TVjunkie »

Great!! Thanks very much!
Post Reply