Python: dated episode renamer

Come up with a useful post-processing script? Share it here!
Post Reply
kaosfere
Newbie
Newbie
Posts: 3
Joined: May 13th, 2008, 9:09 am

Python: dated episode renamer

Post by kaosfere »

After failing to find any decent cross-platform implementations of a post processor to rename episodes that come with dates on them (The Daily Show, The Colbert Report) to use standard season/episode numbers, I decided to write on myself.

It's only been tested on Linux, but should work on OS X.  Not a big Windows user... I can probably package it for Windows if there's enough demand.  Not sure it would work out of the box.

The code's at github:  http://github.com/kaosfere/dated_episode_renamer

Be sure to check the README for usage, and for details on a couple of improvements I plan on making (better file name templating, and possibly changing to SAX as DOM is slow for large episode lists)
josefismael
Newbie
Newbie
Posts: 7
Joined: April 21st, 2010, 11:10 pm

Re: Python: dated episode renamer

Post by josefismael »

Nice work - been looking for something exactly like this for Linux......

I see you're doing your xml fetching and parsing all via http. I'm not a python guy, but I wrote a similar script in powershell that pulled down the compressed en.zip of the show that matched the episode lookup, so tht it could be processed locally. Unfortunately, my powershell powers are useless on Linux - maybe this is something to try to speed things up?
Post Reply