Page 1 of 1

Movie Collection Labeling

Posted: 15 May 2013, 18:48
by MrSpookie
First of all I just want to say thanks for an amazing product! I am one who likes to have everything very organised for my Media Center and FileBot has saved me hundreds of hours already!

I am having a small issue with labeling my Movies how I want to. What I am trying to do is have the Collection Name (minus Collection) followed by the Movie Title and Year. The issue comes in when I am trying to neaten things up a bit for the few movies that already include the Collection Name in the Movie Name; For Example, Die Hard.

Here is what I have at the moment:

Code: Select all

C:/Movies/{vf}/{"$collection - ".replaceAll('Collection')}{n.replaceAll(':', replacement = " - ")} [{y}]
For the Movie "Die Hard: With a Vengeance" this will output "Die Hard - Die Hard - With a Vengeance [1995]" See the issue?

I want to try and remove the Second "Die Hard" and the " - " before it if that's possible?
I know it's not a massive issue and it's something that I can fix manually but I am sure this will annoy someone else too :)

Thanks in advance for any help!

Re: Movie Collection Labeling

Posted: 16 May 2013, 03:22
by rednoah
Try something like this and then play with it ;)

Code: Select all

{if (!collection.contains(n)) collection.before('Collection')+' -'} {n} {y}

Re: Movie Collection Labeling

Posted: 16 May 2013, 04:06
by MrSpookie
That seems to only work with movies that have the exact name of the Collection, usually the first in the series. Any ideas on how to get it to remove the selection of text from the Name String?

Re: Movie Collection Labeling

Posted: 16 May 2013, 04:57
by rednoah
Then try the other way around:

Code: Select all

{if (!n.contains(collection.before('Collection'))) collection.before('Collection')+' -'}
I don't understand the meaning of "selection of text from name string".

Re: Movie Collection Labeling

Posted: 16 May 2013, 05:05
by MrSpookie
That gets rid of the Name completely :)
I will have a bit more of a play around with it and see if I can figure it out.

By "selection of text from name string" I mean for example that Name is "The Fast and the Furious: Tokyo Drift", I want to just remove the "The Fast and the Furious" or be able to detect that that specific selection (Collection Name) is already in the Movie Name and not add the Collection Name to it in that case. Does that makes sense, sorry?

Re: Movie Collection Labeling

Posted: 16 May 2013, 05:26
by MrSpookie
Got it!
It wasn't matching correctly because of a space that was left after the Collection Name :P

Code: Select all

{if (!n.contains(collection.before(' Collection'))) collection.before(' Collection')+' - '}{n.replaceAll(':', replacement = " -")} [{y}]