Created: 2008-05-23 04:08
Updated: 2018-07-10 00:49


TV Renamer

This will take a folder and recursively go down through all directories finding all valid video files (avi, mov, mpg, wmv, mkv, ogm, etc...), match them against common syntaxes, and rename them according to your preference

Defining syntax might look something like this.

Renamer.syntax = "%S - %0sx%0e - %T" # current directory by default

Where %S = Series name, %s is the season number, %0e is zero-padded episode number, and %T is title.

This would mean something like would be renamed as: My Name Is Earl - 3x01 - My Name Is Inmate, Part 1

I was originally going to write this months ago using Hpricot to scrape (for example: However I found out about TVDB the other day and am very excited now!

I also found this morning this script, so as an initial version this will probably just be a ruby port of that.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more