#1 2015-10-09 17:27

loungebob
Member
Registered: 2015-09-29
Posts: 45

ReNamer use for scene TV show releases

continuing from TV show script 123 1x23 [1x23] => s01e23

so, have it almost all figured out, which is hard for a logic deficient like me.

den4b's regex examples work well, with the below exceptions.

1) Replace expression \b(\d)x?(\d\d)\b with s0$1e$2  (this rule converts 123 1x23 [1x23] => s01e23)
2) Replace expression \b(\d\d)x?(\d\d)\b with s$1e$2 (this rule converts 1234 12x34 [12x34] => s12e34)

both work fine unless the original file names contain years as part of the file name and/or have a double episode numbering scheme.

examples:
the.player.2015.s01e03.hdtv.x264-killers.mp4 --> the.player.s20e15.s01e03.hdtv.x264-killers.mp4
heroes.reborn.10102.hdtv-lol.mp4 --> heroes.reborn.10102.hdtv-lol.mp4

would you have an additional regex expression to take care of those or ammend the above examples to include those cases?


also, a few more questions:

- how can I get rid of episode names in the file name? e.g. Family.Guy.S14E02.Papa.Has.a.Rollin.Son.720p.WEB-DL.x264-nTb where "Papa.Has.a.Rollin.Son." needs to go so the episode has no name. From my experience, the episode name is almost always included after the season and episode number but can have any lenght and characters....

- a refresh button in ReNamer for the file list would be nice, havent quite figured out how to update the list if an original file name changes in the file system while it is already loaded in ReNamer

- any plans to make ReNamer run as a service or make it monitor folder so it can do its job automatically without user action? I think it would be awesome....

Offline

#2 2015-10-09 22:15

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

Re: ReNamer use for scene TV show releases

You still haven't provided example input and output (desired vs actual) file names.

Here is my guess of what you want:
1) RegEx: Replace expression "\b([01]\d)x?(\d\d)\b" with "s$1e$2" (skip extension)
2) RegEx: Replace expression "\b(\d)(\d\d)(\d\d)\b" with "s$1e$2.s$1e$3" (skip extension)

Input:

the.player.2015.0103.hdtv.x264-killers.mp4
heroes.reborn.10102.hdtv-lol.mp4

Output:

the.player.2015.s01e03.hdtv.x264-killers.mp4
heroes.reborn.s1e01.s1e02.hdtv-lol.mp4

Offline

#3 2015-10-09 22:19

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

Re: ReNamer use for scene TV show releases

loungebob wrote:

any plans to make ReNamer run as a service or make it monitor folder so it can do its job automatically without user action?

No such plans. You can perform renaming operations automatically using ReNamer's command line options, which could be added to scheduled tasks to be performed regularly. Check "Create Links" option in Presets menu.

Offline

#4 2015-10-15 17:53

loungebob
Member
Registered: 2015-09-29
Posts: 45

Re: ReNamer use for scene TV show releases

Sorry, my bad. Got it almost working with your regex. Thanks a lot. For others, here's what's happening:

castle.2009.804.hdtv-fum NEEDS TO BE castle.2009.s08e04.hdtv-fum

blindspot.104.hdtv-lol NEEDS TO BE blindspot.s01e04.hdtv-lol

ncis.1304.hdtv-lol NEEDS TO BE ncis.s13e04.hdtv-lol

heroes.reborn.10102.hdtv.x264-killers NEEDS TO BE heroes.reborn.s01e01.s01e02.hdtv.x264-killers

the following regex takes care of this

Replace expression "\b(\d)x?(\d\d)\b" with "s0$1e$2" (skip extension)
Replace expression "\b([01]\d)x?(\d\d)\b" with "s$1e$2" (skip extension)
Replace expression "\b(\d)(\d\d)(\d\d)\b" with "s$1e$2.s$1e$3" (skip extension)


@den4b:
how can I get rid of episode names in the file name?

e.g. Family.Guy.S14E02.Papa.Has.a.Rollin.Son.720p.WEB-DL.x264-nTb

should be

Family.Guy.S14E02.720p.WEB-DL.x264-nTb

From my experience, the episode name is almost always included after the season and episode number but can have any lenght and characters....any idea?

Offline

Board footer

Powered by FluxBB