Page 1 of 1

Help with Collections

Posted: 20 Oct 2015, 05:49
by bookedirl
I'm using my RasberryPi to sort out my media files as I download them and so far its been great. I have my format very simple and I would like to take it one step further. I would like to put collections of movies in just one folder and not Collection Folder>Movie Folder>Movie Name.mp4

Here's what I'm using now:

Code: Select all

Movies/{collection+'/'}{n} ({y})/{n} ({y}){' CD'+pi}
I've been using the GUI to test out different formats but I can't figure out a way to either only use collections part of the script if it is a collection or if it is a collection skip the first set of {n} ({y}).

Exp:
I want this
Aliens Collection/Alien (1979).mp4
Aliens Collection/Aliens (1986).mp4


Instead of this:
Aliens Collection/Alien (1979)/Alien (1979).mp4
Aliens Collection/Aliens (1986)/Aliens (1986).mp4


Any help would be appreciated!

Re: Help with Collections

Posted: 31 Oct 2015, 00:46
by Pab
Is it something like this you are after?

Code: Select all

Movies/{collection ? collection : n (y)}/{n} ({y}){' CD'+pi}
The brackets statement gives the collection if its in a collection, otherwise the name and year

Re: Help with Collections

Posted: 31 Oct 2015, 01:48
by bookedirl
Pab wrote:Is it something like this you are after?

Code: Select all

Movies/{collection ? collection : n (y)}/{n} ({y}){' CD'+pi}
The brackets statement gives the collection if its in a collection, otherwise the name and year
Perfect! This is exactly what I was looking for :)

Thank you very much!

Re: Help with Collections

Posted: 31 Oct 2015, 04:57
by rednoah
Here's a correct solution for this problem:

Code: Select all

Movies/{any{collection}{n+'('+y+')'}}/{n} {'('+y+')'}{' CD'+pi}

Re: Help with Collections

Posted: 03 Nov 2015, 20:12
by bookedirl
rednoah wrote:Here's a correct solution for this problem:

Code: Select all

Movies/{any{collection}{n+'('+y+')'}}/{n} {'('+y+')'}{' CD'+pi}
Thanks Rednoah. What's the difference between your way and Pabs? When I put both into filebot they appear to give the same naming. Either way thanks again!

Re: Help with Collections

Posted: 04 Nov 2015, 01:24
by rednoah
My solution works, the other does not.

This piece of the code is completely wrong {collection ? collection : n (y)} and is effectively equivalent to just {collection}.