Numbering Collections?

All about user-defined episode / movie format expressions
Post Reply
DevXen
Power User
Posts: 132
Joined: 12 Oct 2014, 21:15

Numbering Collections?

Post by DevXen »

I am going to be sorting my movies, by collection, if they are in one. is there a way to add the 'movie name' and the number of that movie to the filename?

Here's an Example:

Mad Max (1979)
Mad Max 2 - The Road Warrior (1981)
Mad Max - Beyond The Thunderdome (1985)

when like in the example above it doesn't clearly give the number of each movie, i'd like to add it:
so i'd like to change the 3rd one to: Mad Max 3 - Beyond The Thunderdome (1985)
and the first one to: Mad Max 1 (1979)


same with The Matrix:
The Matrix
The Matrix Reloaded
The Matrix Revolutions


I'd like it to be:
The Matrix 1
The Matrix 2 - Reloaded
The Matrix 3 - Revolutions



(In both cases, so they appear in the folder/media server in chronological order.)
User avatar
rednoah
The Source
Posts: 19011
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Numbering Collections?

Post by rednoah »

It might be possible, but only if you rename the whole set in one go.

You can access the rename context via the {model} binding which will give you a Map<File, AssociativeScriptObject<Movie>> and then you could groupBy collection sortBy year and pick the one that equals {self}.

Suffice to say, this one is very tricky, and if anybody else was asking I'd probably say it's not possible.


PS: I won't be around for a month or so, but in March I can look into this and see if I can figure this one out.
:idea: Please read the FAQ and How to Request Help.
DevXen
Power User
Posts: 132
Joined: 12 Oct 2014, 21:15

Re: Numbering Collections?

Post by DevXen »

Ok, thank you, when you get back if you want to take a crack at it. that'd be great. if i get it figured out by then, I'll post in here, with the solution so you know, and anyone else can use it as well.
Post Reply