Page 1 of 1

Sortname() Stopped Working For Me

Posted: 13 Jan 2016, 22:24
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!

Re: Sortname() Stopped Working For Me

Posted: 14 Jan 2016, 02:20
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

Re: Sortname() Stopped Working For Me

Posted: 14 Jan 2016, 03:48
by TVjunkie
Great!! Thanks very much!