#1 2016-08-08 10:58

rodeheuvel
Member
Registered: 2016-08-08
Posts: 2

Reformat name and save in separate folder

Hi, I have been trying to get my production videos folders and files into some sort of order and renamer has been a great help.
But I need a more efficient way to rules instead of just one at a time.

Here is what I am trying to do.

1 - Replace "." with a space ( skip extension)
2 - Remove all text "Production", "Media"  ( skip extension)
3 - Strip Brackets "(){}[]) ( skip extension)
4 - Look for year text, a year 1901 to 2016 for example, and insert that date into  brackets "()" ie (1901)
5 - Look for information text, such as x265 or 1080p or HEVC and replace, IN ORDER "[1080p x256 HEVC]
6 - Save to an individual folder with just text and date ie Brendan Family (2015)


So the following:
Brendan.(Family).Production.2010.x265.HEVC.1080p.mov

Should result in:

Brendan Family (2010)
---Brendan Family (2010) [1080p x265 HEVC].mov

Could somebody help me with the RegeX. I have tried the manual, and my head is swimming sad

Offline

#2 2016-08-08 11:39

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Reformat name and save in separate folder

Hi,

Your particular example can be done with the following rules:

1) CleanUp: Replace with spaces "." (skip extension)
2) Remove: Remove all "Production", "Media" (skip extension)
3) Strip: Strip everywhere characters "(){}[]" (skip extension)
4) RegEx: Replace expression "\b((19\d\d)|(20\d\d))\b" with "($1)" (skip extension)
5) RegEx: Replace expression "(x265)(.*?)(1080p)" with "[$3 $1 $2]" (skip extension)
6) CleanUp: Normalize spaces, Fix spaces (skip extension)
7) Replace: Replace all " ]" with "]" (skip extension)
8) Rearrange: Split by exact pattern of delimiters " [", New pattern "$1\$1 [$2" (skip extension)

So the following filename:

Brendan.(Family).Production.2010.x265.HEVC.1080p.mov

Results in:

Brendan Family (2010)\Brendan Family (2010) [1080p x265 HEVC].mov

You may need to make minor rule adjustments to fit video format variations, e.g. "(x265)(.*?)(720p)".

Offline

#3 2016-08-12 06:07

rodeheuvel
Member
Registered: 2016-08-08
Posts: 2

Re: Reformat name and save in separate folder

Thankyou very much.
Ill give it a try and report back smile

Offline

Board footer

Powered by FluxBB