Page 1 of 1

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

Posted: 13 Mar 2024, 19:06
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

Re: number sort by year

Posted: 13 Mar 2024, 20:26
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)

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

Posted: 14 Mar 2024, 14:30
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 }