#1 2012-04-17 02:16

KenG
Member
Registered: 2012-04-17
Posts: 2

Help with TV shows

Hi

I have a disk full of TV shows that are currently named Title 01x01 - episode.avi (with seasons 1 - 20 and episodes 1 - 30 etc)
The cataloger software I use want the file name to be Title - 01x01 - episode.avi etc
I cant work out how to insert the - after the title and before the 01x01 etc.

Any help would be appreciated.

Cheers

Ken

Offline

#2 2012-04-17 12:14

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Help with TV shows

Hi Ken welcome.

FROM:
Title 01x01 - episode.avi
TO:
Title - 01x01 - episode.avi

KenG wrote:

I cant work out how to insert the - after the title and before the 01x01 etc.

You have to find an common pattern to delimiter the "title" from the "01x01"

Perhaps this:
( [Find one-or-more of any sign] ) TILL 
( [two digits] followed by [x] followed by [two digits] followed by [ - ] and [one-or-more of any sign] )


So try this Regular Expression Rule (with test files!):

FIND: (.+) (\d\dx\d\d - .+)
REPL: $1 - $2

[X] Skip Extensions

See > http://www.den4b.com/wiki/ReNamer:Rules:RegEx



And always take care - make backups!


.


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2012-04-17 23:18

KenG
Member
Registered: 2012-04-17
Posts: 2

Re: Help with TV shows

Hi Stefan,

Brilliant works like a charm, I was trying to do a search on just the 01x01 with (\d\d)x(\d\d) and replace with - $1x$2
which worked 80% of the time but had a few problems with the rest sad  didn't think of (.+) for the rest of the file name
it now works 100% thanks for you help.

Cheers smile

Ken

Offline

Board footer

Powered by FluxBB