Page 1 of 1

Python: dated episode renamer

Posted: April 2nd, 2010, 5:10 pm
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)

Re: Python: dated episode renamer

Posted: April 21st, 2010, 11:22 pm
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?