Season & Episode rename

Advanced Renamer forum
#1 : 17/04-20 15:12
Khushil Dep
Posts: 1
Hi All

Trying to think my way through this. I have many directories all with SXX where XX is an increment number. I want the episodes in those directories to be numbered incrementally ad with the XX part in the file name. Obvs I also need the increment to restart when directory is changed. Cant seem to think my way through this atm. Any ideas?

Currently I do three 'Replace'

Text to be replaced: ^\d.
Replace with:<DirName>__

Text to be replaced: ^\d\d.
Replace with:<DirName>__

Text to be replaced: (S\d\d*) (.*)__(.*)
Replace with:\1E<Inc Nr:1> \3

That still leaves me with the problem of resetting that inc nr when the directory changes...

edited: 17/04-20 15:18
#2 : 17/04-20 16:03
David Lee
Posts: 1125
The answer should be obvious!
<Inc NrDir>