Code: Select all
//media/Movies/{n0 = n.sortName().charAt(0); n0.isDigit() ? '#' : n0}/{n.sortName('$2, $1').replaceAll(/[:|]/, " - ")} ({y})/{n.replaceAll(/[:|]/, " - ")} ({y}){' CD'+pi}{subt}
However, what I would like to do is add a check to see if a movie is part of a collection and if so create a folder for that collection. I came up with the following:
Code: Select all
{n0 = n.sortName().charAt(0); n0.isDigit() ? '#' : n0}/{any{collection.sortName('$2, $1')/ny}{ny}}