Filename processor - underscore trouble.

electricjason

02-07-2010 01:29:08

Hi guys, just looking for some help with the regex code for processing file names in the form: "the_tv_show_-_season_1_ep_18_-_name_of_episode.avi"

This one:
(^|[^a-z])(?<s>[0-9]+)-(?<e>[0-9]{2,})[^a-z]
Is giving me some luck (recognizes one episode which has all numbers in its episode name but this code makes it consider the ep name as the episode # for some reason.

I tried adding in "[^_%]" but that didn't quite get it to work.

Any help would be appreciated,

thank you. :)

electricjason

13-07-2010 19:35:40

Ok couldn't figure out how to do it using the regex code but i did find a work around which involves relatively little effort (considering the show im trying to rename has over 200 episodes).

1. Download Bulk Renaming Utility (http://www.bulkrenameutility.co.uk)
2. Open BRU, go to each season of the show, highlight the episodes and perform the following operations:
a. Replace '_' with ' '
b. Replace 'season ' (note the space) with 's', click rename
c. Replace ' ep ' (again note the two spaces) with 'e', click rename

Now you'll have the episodes in the format: the tv show - s1e18 - name of episode.avi

3. Run TVRename which should now pick up all the episodes as normal.


Hopefully this helps anyone out there with a similar problem ;)