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)
Python: dated episode renamer
-
- Newbie
- Posts: 7
- Joined: April 21st, 2010, 11:10 pm
Re: Python: dated episode renamer
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?
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?