Format Expression - Help With Collections

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
bookedirl
Posts: 17
Joined: 09 Oct 2015, 14:31

Format Expression - Help With Collections

Post by bookedirl »

I took a look at this post viewtopic.php?t=2 and I'm looking at sorting out my movies a certain way. Not sure if it's possible.

Code: Select all

Movies/{collection+'/'}{n} ({y}){' CD'+pi}
This is close to what I want... but I don't want movies in a collection being put into their own folders inside the collection folder.

Example:

/Movies/Toy Story Collection/Toy Story (1995)/Toy Story (1995).mp4
/Movies/Toy Story Collection/Toy Story 2 (1999)/Toy Story 2 (1999).mp4
""
Non-Collection Movie:
/Movies/The Boxtrolls (2014)/The Boxtrolls (2014).mp4


I want it to instead do this:

/Movies/Toy Story Collection/Toy Story (1995).mp4
/Movies/Toy Story Collection/Toy Story 2 (1999).mp4
""
Non-Collection Movie:
/Movies/The Boxtrolls (2014)/The Boxtrolls (2014).mp4


Is it possible to do this or will I need to find out some way to do check if it's a collection or not?

Thank you.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Format Expression - Help With Collections

Post by rednoah »

Solution:

Code: Select all

Movies/{any{collection}{"$n ($y)"}}/{n} ({y}){' CD'+pi}
@see viewtopic.php?f=5&t=1895
:idea: Please read the FAQ and How to Request Help.
Post Reply