Automatically sorts TV show episodes into an organised directory structure.
[show]/[season x]/[eps]
This provides the magic required to have your home theatre PC (HTPC) keep itself sorted out. You can combine this script with an automatic episode downloader (there are openly licensed shows available), and this script can sort all of your new episodes, renaming them appropriately if you like. Then, if you use xbmc as a front end, it can tell xbmc to check for the new episodes and display a message to anyone viewing, that new episodes are available. All you will have to do is sit back and enjoy.
Tested on Linux and Windows.
This is free open source software (GPLv3).