How to Automate TV Show Downloads and Rename Them

HOW TO GUIDE TO AUTOMATICALLY DOWNLOADING TV SHOWS
I automate all my tv show downloads with torrents like my computer is my own personal Tivo. For those who don't know how to do this I will explain, and you may wish to set this up for yourself as well.
I use a program called TED (torrent episode downloader) found here http://www.ted.nu. TED will automatically download the torrent for a tv show as soon as it's added to the internet. TED than saves the torrent file in a folder I have designated (I called this folder TED Downloads on my computer.
Then Transmission (my torrent program of choice), I have set up to watch the TED Downloads folder and whenever a torrent file is added to Ted Downloads, Transmission will start downloading it. Once the tv show has completed downloading, Transmission saves the completed file into my Torrent Downloads folder.
At which point I have Hazel set up to watch my Torrent Downloads folder, and I have the rules set up in such a way as it places that tv show file into the folder I wish it to be in.
e.g. Hazel rules for tv show Dexter.
Folder Torrent Downloads
Name starts with Dexter
Move File to folder Dexter - Season 5
Then anytime a new episode of Dexter airs, as soon as it hits the internet, it downloads automatically on my computer and Hazel sorts it into the appropriate folder once finished. I set this up with all the tv shows I watch.
Then I set up my PS3 (or Xbox or Tivo with PyTivoX http://code.google.com/p/pytivox/) to stream all those to my tv when I choose.
But there is a problem...
How can i automatically rename the downloaded tv shows?
When one downloads Dexter for example it reads
Dexter.S05E07.HDTV.XviD-FEVER.avi
Which is formatted very bad, looks ugly, doesn't have title of episode, and has all this unneeded information. I would like it to read something like this...
Dexter - 5x07 - Circle Us.avi
There are lots of programs on the internet that rename tv shows. Such as:
http://filebot.sourceforge.net/
http://www.tvrename.com/ (Windows)
http://amongstbits.com/transmogrifier.html
But none are that good (or automated like Hazel is).
So does anyone have an idea of how renaming TV shows can be automated. Is there a way to take the file name of a torrent, automatically query websites like TVDB.com, IMDB.com, TV.com, and find the tv show name and rename them in a way that makes sense? Filebot renames the tv shows correctly, but one has to manually find the file, and plug in the information. I want something that can be automated. Perhaps a fancy Applescript that Hazel can trigger to rename the file? Anyway, if there are any computer nerds out there that can come up with a solution it would be greatly appreciated.
Also if anyone wants any help or clarification on the steps to automatically downloading TV shows and sorting them into folders. I will gladly respond.
Thanks.
I automate all my tv show downloads with torrents like my computer is my own personal Tivo. For those who don't know how to do this I will explain, and you may wish to set this up for yourself as well.
I use a program called TED (torrent episode downloader) found here http://www.ted.nu. TED will automatically download the torrent for a tv show as soon as it's added to the internet. TED than saves the torrent file in a folder I have designated (I called this folder TED Downloads on my computer.
Then Transmission (my torrent program of choice), I have set up to watch the TED Downloads folder and whenever a torrent file is added to Ted Downloads, Transmission will start downloading it. Once the tv show has completed downloading, Transmission saves the completed file into my Torrent Downloads folder.
At which point I have Hazel set up to watch my Torrent Downloads folder, and I have the rules set up in such a way as it places that tv show file into the folder I wish it to be in.
e.g. Hazel rules for tv show Dexter.
Folder Torrent Downloads
Name starts with Dexter
Move File to folder Dexter - Season 5
Then anytime a new episode of Dexter airs, as soon as it hits the internet, it downloads automatically on my computer and Hazel sorts it into the appropriate folder once finished. I set this up with all the tv shows I watch.
Then I set up my PS3 (or Xbox or Tivo with PyTivoX http://code.google.com/p/pytivox/) to stream all those to my tv when I choose.
But there is a problem...
How can i automatically rename the downloaded tv shows?
When one downloads Dexter for example it reads
Dexter.S05E07.HDTV.XviD-FEVER.avi
Which is formatted very bad, looks ugly, doesn't have title of episode, and has all this unneeded information. I would like it to read something like this...
Dexter - 5x07 - Circle Us.avi
There are lots of programs on the internet that rename tv shows. Such as:
http://filebot.sourceforge.net/
http://www.tvrename.com/ (Windows)
http://amongstbits.com/transmogrifier.html
But none are that good (or automated like Hazel is).
So does anyone have an idea of how renaming TV shows can be automated. Is there a way to take the file name of a torrent, automatically query websites like TVDB.com, IMDB.com, TV.com, and find the tv show name and rename them in a way that makes sense? Filebot renames the tv shows correctly, but one has to manually find the file, and plug in the information. I want something that can be automated. Perhaps a fancy Applescript that Hazel can trigger to rename the file? Anyway, if there are any computer nerds out there that can come up with a solution it would be greatly appreciated.
Also if anyone wants any help or clarification on the steps to automatically downloading TV shows and sorting them into folders. I will gladly respond.
Thanks.