Need help with my custom movie format

All about user-defined episode / movie / file name format expressions
Post Reply
Xiphan
Posts: 9
Joined: 21 May 2020, 20:45

Need help with my custom movie format

Post by Xiphan »

Firstly I just wanna say thanks for this amazing app, it really is a lifesaver when it comes to sorting out media. Speaking of which this is what I have come up with for sorting out my movies:

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}
Which works perfectly for renaming and moving something like The Movie Name (2020).mkv to //Media/Movies/M/Movie Name, The (2020)/The Movie Name (2020).mkv

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}}
But I am having trouble combining it with my current movie format. Could I perhaps ask for some help on combining the two? :?: :)
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help with my custom movie format

Post by rednoah »

Let's try this and see if that works for all your use cases:

Code: Select all

{az}/{collection}/{ny}
:idea: Please read the FAQ and How to Request Help.
Post Reply