#1 2023-05-06 08:26

klapvogn
Member
Registered: 2023-05-06
Posts: 5

Rename tv-show

Hi,

I hope someone can help me here, first of all im no good at regex sad so I need some help in renaming alot of files with diffrent content in all folder!

Folder 1:

Columbo.S01E01.da-dk.srt
Columbo.S01E01.fi-fi.srt
Columbo.S01E01.mp4
Columbo.S01E01.nb-no.srt
Columbo.S01E01.sv-se.srt

I would like when renamer has done it's job the filename should read:

Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.da.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.no.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.sv.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.fi.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.mp4

Hope someone can help me achieve this :-)

Last edited by klapvogn (2023-05-06 08:26)

Offline

#2 2023-05-06 11:26

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 354

Re: Rename tv-show

Hi,

Try this RegEx rule:

1) Regular Expressions: Replace expression "(Columbo\.S01E01)(\.?[a-z]+)?(-[a-z]+)?" with "$1.NORDiC.720p.WEB.H264-XXXX$2" (skip extension)

or less strict one regarding first filename part

1) Regular Expressions: Replace expression "(\w+\.\w+)(\.?[a-z]+)?(-[a-z]+)?" with "$1.NORDiC.720p.WEB.H264-XXXX$2" (skip extension)

From:

Columbo.S01E01.da-dk.srt
Columbo.S01E01.fi-fi.srt
Columbo.S01E01.mp4
Columbo.S01E01.nb-no.srt
Columbo.S01E01.sv-se.srt

To:

Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.da.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.fi.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.mp4
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.nb.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.sv.srt


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

#3 2023-05-06 11:28

klapvogn
Member
Registered: 2023-05-06
Posts: 5

Re: Rename tv-show

What about multiple files like :
mini_renamer.png

Edit:

tried this one:

or less strict one regarding first filename part

1) Regular Expressions: Replace expression "(\w+\.\w+)(\.?[a-z]+)?(-[a-z]+)?" with "$1.NORDiC.720p.WEB.H264-XXXX$2" (skip extension

Seems to work as I wanted smile

Can it be made universal maybe?

mini_renamer1.png
Law.And.Order is the name, but it has moved "Order"

Last edited by klapvogn (2023-05-06 11:49)

Offline

#4 2023-05-06 12:23

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 354

Re: Rename tv-show

Yes it can but please provide various and textual examples in future like in the first post! We cannot guess what variations in filenames you have.

1) Regular Expressions: Replace expression "(\w+\.)(\.?S[\w]+)(\.?[a-z]+)?(-[a-z]+)?" with "$1$2.NORDiC.720p.WEB.H264-XXXX$3" (skip extension)

It should resolve all "name.name.etc" parts.


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

Board footer

Powered by FluxBB