Page 1 of 1

Adventure, Fantasy/Hobbit, The - The Battle of Five Armies [2014]

Posted: 12 Jan 2019, 14:06
by fxgopher
Hi

My Films when I want to use filebot Are currently Name - Year. However, I want to sort films into

Code: Select all

Genres Folder\ Film Title [Year]
I want all : anywhere in the name replaced with a - symbol, and also any film that has a The at the beginning to be renamed to look like below:

Code: Select all

The Hobbit - The Battle of Five Armies 
becomes

Code: Select all

Hobbit The - The Battle of Five Armies
So the final code result would turn

Code: Select all

F:\ Films \The Hobbit - The Battle of Five Armies (2014)
Into

Code: Select all

F:\Films\Adventure, Fantasy\Hobbit, The - The Battle of Five Armies [2014]
Thanks in Advance
Frank

Re: Simple code to do the following

Posted: 12 Jan 2019, 14:46
by rednoah
This should mostly get you there:

Code: Select all

F:/Films/{genres.take(2).join(', ')}/{n.colon(' - ').sortName('$2, $1')} [{y}]