Properly name TV episode files
I just encoded my Futurama DVDs to put on my iPod, but it's a real hassle adding tags to every single file separely, so I created a script to do it for me. I had actually written this before, but I forgot it at home, so I had no option but to rewrite it.
The script (written in Python) will search the filenames for "sXXeXX" and look up the episode name on IMDB, and then will rename the file as "Show name - SXXEXX - Episode name.extension". If you have AtomicParsley, it can also run it and fill in the tags for iTunes with the proper information automatically.
The script is available at the scripts page, or, if you're too lazy, here.
To run it, you need to have Python installed (obviously), and run it as ./episode_rename.py <imdb show id>, where "
Hopefully, this will correctly detect all the video files in the current directory and rename them accordingly (this works for any kind of file, really, it's not picky, so subtitles will also be renamed, as long as they have sXXeXX in the name).
That's all, really. I hope you enjoy this and do something productive instead of renaming a million episodes manually.
yeah i guess manual renaming of stuff does take up a lot of precious time
- reply
Submitted by marilena (not verified) on Tue, 06/05/2008 - 12:18.I'm not sure whether your comment is trying to be sarcastic, but if it is, try renaming 150 episodes of South Park with proper iTunes tags and tell me how long it took you.
Good luck.
---
Vidi, Vici, Veni.
- reply
Submitted by Poromenos on Tue, 06/05/2008 - 13:22.Have you looked at adding additonal metatags? I manually set all the ones your script hits plus the following:
--genre
--contentRating
--year
--album
--artwork
--description
- reply
Submitted by Mark (not verified) on Sun, 25/05/2008 - 02:59.Oh, I didn't know that... That's for the next version then, thanks for the suggestion!
- reply
Submitted by Poromenos on Sun, 25/05/2008 - 10:15.I've been looking for something like this for ages! I was even considering doing some legwork and coding it myself, but couldn't be bothered.
There is one issue though: it doesn't work on OS X. Keep getting an error that says
UnboundLocalError: local variable 'new_filename' referenced before assignment
Any ideas?
- reply
Submitted by magu (not verified) on Mon, 16/06/2008 - 23:04.Hmm, that's probably a bug, I think I fixed it a while ago. Get the latest version from the bzr repository from its Launchpad page.
- reply
Submitted by Poromenos on Mon, 16/06/2008 - 23:37.