#1 2020-01-20 02:42

discodean
Member
Registered: 2018-02-17
Posts: 10

TV Episode Reformat ( 01x01 >> S01 E01)

Hi
I want to automate the reformat of TV episodes but can't see how to do with wildcards in one command, from:
01x01
01x02
01x03
01x04
01x05
01x06
01x07
01x08
01x09
01x10

02x01
02x02
02x03
02x04
02x05
02x06
02x07
02x08
02x09
02x10

To:
S01 E01
S01 E02
S01 E03
S01 E04
S01 E05
S01 E06
S01 E07
S01 E08
S01 E09
S01 E10

S02 E01
S02 E02
S02 E03
S02 E04
S02 E05
S02 E06
S02 E07
S02 E08
S02 E09
S02 E10

Can anyone help please?

Last edited by discodean (2020-01-20 02:43)

Offline

#2 2020-01-20 10:36

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

Re: TV Episode Reformat ( 01x01 >> S01 E01)

FROM:
A test 01x01 test.ext
01x02.ext
01x10.ext
02x03.ext
02x10.ext

TO:
A test S01 E01 test.ext
S01 E02.ext
S01 E10.ext
S02 E03.ext
S02 E10.ext


Try this Regular Expression Rule (See > http://www.den4b.com/wiki/ReNamer:Rules:RegEx )

Express: (\d+)x(\d+)
Replace: S$1 E$2
[X] Skip Extensions


Try test files first, and best have an backup




HTH?


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 2020-01-20 11:40

discodean
Member
Registered: 2018-02-17
Posts: 10

Re: TV Episode Reformat ( 01x01 >> S01 E01)

Thanks for the reply Stephan
Looking at the preview, the fix you gave me works for most of the files up to and including episode 09.   When you get to episode 10+, it produced these results:

Original
01x10 filename.ext
01x11 filename.ext

Is previewed as:
0s01 e10 filename.ext
0s01 e11 filename.ext

It adds an additional '0' in the front and then causes the 's' to be lowercase.

Could you advise how to also cover the 10+ episode numbering in the same expression please?

Offline

#4 2020-01-20 12:39

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

Re: TV Episode Reformat ( 01x01 >> S01 E01)

discodean wrote:

...
Original
01x10 filename.ext
01x11 filename.ext

Is previewed as:
0s01 e10 filename.ext
0s01 e11 filename.ext

...





FROM:
01x10 filename.ext
01x11 filename.ext

TO:
S01 E10 filename.ext
S01 E11 filename.ext


works for me with the above used
Express: (\d+)x(\d+)
Replace: S$1 E$2
[X] Skip Extensions


Do you have a longer filename as you show us here, or do you use other rules before or after?
You can export the rules to clipboard (right click a rule) and post that here.
(If not, do you maybe use an older ReNamer version?)

Or do you try to insert a Zero '0' yourself?



.


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

#5 2020-01-21 00:27

discodean
Member
Registered: 2018-02-17
Posts: 10

Re: TV Episode Reformat ( 01x01 >> S01 E01)

Thanks again Stefan
I just upgraded to the latest version and my other 800+ rules do not impact this.

I extended my list of directories to rename from 1 to 6, and then found that this rule does work for all of the other 5 sub-directories, just not the first one. Maybe there is something funky like a special character in those couple of filenames in the first directory.  I will just manually change those as this seems to rename all the others as required.

Excellent app! - Can't live without it

Tx
Dean

Offline

Board footer

Powered by FluxBB