Plain File Mode (Comics CleanUp)

Any questions? Need some help?
Post Reply
mouzzampk2014
Posts: 29
Joined: 07 Jan 2019, 00:49

Plain File Mode (Comics CleanUp)

Post 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
User avatar
rednoah
The Source
Posts: 20170
Joined: 16 Nov 2011, 08:59

Re: Plain File Mode (Comics CleanUp)

Post 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}
:idea: Please read the FAQ and How to Request Help.
mouzzampk2014
Posts: 29
Joined: 07 Jan 2019, 00:49

Re: Plain File Mode (Comics CleanUp)

Post by mouzzampk2014 »

Thank you so much and as always much appreciated.

Have a great weekend. Ta
Post Reply