number sort by year (i.e. add movie number to file name for movie collections)

All about user-defined episode / movie / file name format expressions
Post Reply
TAMASTEDA
Posts: 7
Joined: 13 Mar 2024, 18:40

number sort by year (i.e. add movie number to file name for movie collections)

Post by TAMASTEDA »

hello . i am new here and have a question . i have foldered movies by collection for example avengers 4 movies .so i use

Format: Select all

{ COLLECTION.replace(' Collection':'') }/{n} ({y})
and result is avengers/The Avengers (2012) etg.
how can i make it to be avengers/01 - The Avengers (2012) 02 - Avengers Age of Ultron (2015) etg ?
i mean based on year to add padding a two diggit starting from one based on sorting the year?
ok there are collections that a movie that came later is truly a prequel as it is fast&furious but i am intresting to do that i asked and then manually maybe i will change them
i hope to be understandable because my english are awful
thank you
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: number sort by year

Post by rednoah »

e.g. use {ci} collection index for the task at hand:

Format: Select all

{ collection + '/' + ci.pad(2) + ' - ' }{ ny }

Code: Select all

The Avengers Collection/04 - Avengers: Endgame (2019)
:idea: Please read the FAQ and How to Request Help.
TAMASTEDA
Posts: 7
Joined: 13 Mar 2024, 18:40

Re: number sort by year (i.e. add movie number to file name for movie collections)

Post by TAMASTEDA »

oh yes thats exacty. just modified because i dont want the collection word. so i replace it

Format: Select all

{  COLLECTION.replace(' Collection':'') + '/' + ci.pad(2) + ' - ' }{ ny }
Post Reply