Page 1 of 1

Plain File Mode (Comics CleanUp)

Posted: 27 Aug 2021, 08:28
by mouzzampk2014
Hi,

I have all my files in these two formats

Code: Select all

Amazing Fantasy 02 (of 05) (2021) (Digital) (Zone-Empire)
Amazing Spider-Man 072 (2021) (Digital) (Zone-Empire)
I am using this format {n}/{n} to keep original filename but I want to clean up the folder name i.e.

Code: Select all

Amazing Fantasy (2021)
Amazing Spider-Man (2021)
You know how can I do it?

Thank you

Re: Plain File Mode (Comics CleanUp)

Posted: 27 Aug 2021, 08:47
by rednoah
This should get you started, and works for the 2 example file names above at the very least:

Code: Select all

/path/to/Comics/
{ fn.before(/\d{2,3}/) } 
{ fn.match(/[(]\d{4}[)]/) }
/
{fn}

Re: Plain File Mode (Comics CleanUp)

Posted: 27 Aug 2021, 13:23
by mouzzampk2014
Thank you so much and as always much appreciated.

Have a great weekend. Ta