Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support


Go Back   Australian Media Center Community > Members Info Forums > The Ettamogah Pub

Community Information

Reply
 
Thread Tools
Old 14th May 2008, 11:46 PM   #1 (permalink)
 
ExtremePC's Avatar
Status ExtremePC is Offline:
Location Sydney
ActivityPosts: 4,438
Reputation & Thanks Support Rating:
ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC
Points Earned: 1456

ExtremePC has been Thanked 294 times in 221 posts
New Torrent Renamer and Mover app.

I've created a new app. call TRAM (Torrent Renamer and Mover). As the name implies it renames and moves TV show torrents. You get to choose the root destination folder and from then on it automatically moves the renamed files to a folder structure based on the show and season.

ie. X:\TV Shows\Lost\Season 4\

If the show and season directories do not exist it will create them for you.

It renames the torrents and get the season and episode data by using the standard naming convention that 99.9999999% of tv show torrents now use.

ie.

lost.s04.e01.hdtv.avi

will get renamed and copied to;

X:\TV Shows\Lost\Season 4\01. The Beggining of the End.avi

The app will also handle .mkv files

There are two xml files that are also needed one is the config file called funny enough config.xml and the other is exceptions.xml.

Config.xml contains the locations for your completed torrents directory and your TV Show directory, either of which can be local or a mapped network drive. A sample of the config.xml file is below.

<Items>
<Item>
<torrentdir>E:\Torrents\Completed</torrentdir>
<tvshowdir>Z:\TV Shows\</tvshowdir>
</Item>
</Items>

The exceptions.xml file contains exceptions to the TV show names used in torrent files and the actual name of TV shows as used by www.tv.com and www.thetvdb.com. ie. The torrent files for the show "Brothers & Sisters" are all named as Brothers.and.Sisters.sXXeXX.something.avi or for Battlestar Galactica, tv.com and thetvdb list the new series as Battlestar Galactica (2005) and the torrents all come as Battlestar.Galactica.sXXeXX.something.avi.
The exceptions.xml flie lets you create alternate names for the app to look up when you have a torrent with an incorrect name used. The structure of exceptions.xml is as follows;

<Items>
<Item>
<exception>Greys Anatomy</exception>
<rule>Grey's Anatomy</rule>
</Item>
<Item>
<exception>Doctor Who</exception>
<rule>Doctor Who (2005)</rule>
</Item>
<Item>
<exception>Battlestar Galactica</exception>
<rule>Battlestar Galactica (2003)</rule>
</Item>
<Items>

As you can see the exception is the name in the <exception> </exception> tag and the proper name is in the <rule> </rule> tag. Hopefully if more people use the app. we can exchange and update the exception.xml file as a community.

In the app itself before you can process any torrents I've made a mandatory button called LOAD that double checks to see that all the necessary config and exception files exist and that all the directories pointed to exist beofre it will let you process a TV torrent.

When it runs if there are torrent files that do not conform to the tv.show.sXXeXX.something.avi format it leaves them alone and goes onto the next torrent file. I've also made deleting the torrent file optional via a tickbox so you can continue seeding the torrents if you choose to.

There is no installer yet so just unzip the three files to a directory of your choice, just make sure that all three files stay together.

Here is a link to the zip file in the downloads section.

I'd appreciate and feedback / suggestions and most of all enjoy!

PS: I've written it in VB .Net 2008 Express (free download from MS), and I'll release the source apon request.
__________________
That which is common to the greatest number has the least care bestowed upon it.
Aristotle
  Reply With Quote
The Following 3 Users Say Thank You to ExtremePC For This Useful Post:
Old 15th May 2008, 07:41 AM   #2 (permalink)
 
vlad's Avatar
Status vlad is Offline:
Location Sydney
ActivityPosts: 4,794
Reputation & Thanks Support Rating:
vlad vlad vlad vlad vlad vlad vlad vlad vlad
Points Earned: 1136

vlad has been Thanked 334 times in 288 posts
vlad's
Media Center
Re: New Torrent Renamer and Mover app.

The idea is good but I would leave season information in the name.
X:\TV Shows\Lost\Season 4\01.04 The Beggining of the End.avi
__________________
Linux World Domination... One Joke at a Time :)
  Reply With Quote
Old 15th May 2008, 10:13 AM   #3 (permalink)
 
ExtremePC's Avatar
Status ExtremePC is Offline:
Location Sydney
ActivityPosts: 4,438
Reputation & Thanks Support Rating:
ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC
Points Earned: 1456

ExtremePC has been Thanked 294 times in 221 posts
Re: New Torrent Renamer and Mover app.

I can change it and play with the file structure and the name quite a bit and leave it up to the user to choose via the config file, thanks Vlad for replying and offering a suggestion, thats the reason I put this up here. As for anyone else step up don't be shy.

So todo list;

1. Offer ability to have alternate file and directory naming
__________________
That which is common to the greatest number has the least care bestowed upon it.
Aristotle
  Reply With Quote
Old 15th May 2008, 10:34 AM   #4 (permalink)
 
dgaust's Avatar
Status dgaust is Offline:
Location Wollongong, NSW
ActivityPosts: 3,063
Reputation & Thanks Support Rating:
dgaust dgaust dgaust dgaust dgaust dgaust dgaust dgaust dgaust
Points Earned: 1229

dgaust has been Thanked 479 times in 428 posts
dgaust's
Media Center
Re: New Torrent Renamer and Mover app.

Extreme,

I wouldn't mind getting a copy of your source if you don't mind.

I've actually just built my own service to do something very similar (using C# 2008). It is just a basic watcher/copier service (it did create the folders if they didn't exist) and doesn't rename (this is the part I'm particularly interested in).

Cheers
__________________
Abit Fatal1ty F-190HD | Quad Core Q6600 2.4Ghz | 2GB Kingston DDR2 667 | Asus 8500GT | WD 250GB, Samsung 500GB | SPDIF Out | Pioneer BDC-S02BK Blu-Ray | DigitalNow Dual Hybrid S2 | Vista Ultimate | Antec Fusion v2

Asus M3N78 Pro | AMD 4850e | 2GB Kingston DDR2 800 | 6x500gb Samsung | DVD-RW | DigitalNow Dual Digital PCI-E | Vista Ultimate | Antec 4U22EPS650

Sign the myEPG petition. Go on, you know you want to.....
  Reply With Quote
Old 15th May 2008, 11:30 AM   #5 (permalink)
 
ExtremePC's Avatar
Status ExtremePC is Offline:
Location Sydney
ActivityPosts: 4,438
Reputation & Thanks Support Rating:
ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC
Points Earned: 1456

ExtremePC has been Thanked 294 times in 221 posts
Re: New Torrent Renamer and Mover app.

Quote:
Originally Posted by dgaust View Post
Extreme,

I wouldn't mind getting a copy of your source if you don't mind.

I've actually just built my own service to do something very similar (using C# 2008). It is just a basic watcher/copier service (it did create the folders if they didn't exist) and doesn't rename (this is the part I'm particularly interested in).

Cheers
It is the funky part isnt it! I'm using www.thetvdb.com to retrieve the data, the site has been specifically set up for just this purpose and it has an XML interface, the details for the interface and an API cqan be found here. The hardest part was stripping the torrent name down and extracting the Show Name, Season Number and Episode Number (not really very hard just fiddly), then using the extracted data to do the lookups using the methods described on the link provided. I avoid prompting the user with multiple matches when doing the SeriesID lookup by checking against the exceptions list and the extracted Show Name. What i mean is the app loops through the returned xml nodes for the SeriesID and does a compare.....

Okay yeah I know boring ****e, PM me your email and I'll send it tonight.
__________________
That which is common to the greatest number has the least care bestowed upon it.
Aristotle
  Reply With Quote
Old 15th May 2008, 11:54 AM   #6 (permalink)
 
dgaust's Avatar
Status dgaust is Offline:
Location Wollongong, NSW
ActivityPosts: 3,063
Reputation & Thanks Support Rating:
dgaust dgaust dgaust dgaust dgaust dgaust dgaust dgaust dgaust
Points Earned: 1229

dgaust has been Thanked 479 times in 428 posts
dgaust's
Media Center
Re: New Torrent Renamer and Mover app.

Cheers Extreme,

PM sent.

I certainly can see a use for it gathering that data for some of the apps out there.

The app I use automatically gathers the information for each file (using thetvdb API) but it will definitely be useful to have a look at the implementation.
__________________
Abit Fatal1ty F-190HD | Quad Core Q6600 2.4Ghz | 2GB Kingston DDR2 667 | Asus 8500GT | WD 250GB, Samsung 500GB | SPDIF Out | Pioneer BDC-S02BK Blu-Ray | DigitalNow Dual Hybrid S2 | Vista Ultimate | Antec Fusion v2

Asus M3N78 Pro | AMD 4850e | 2GB Kingston DDR2 800 | 6x500gb Samsung | DVD-RW | DigitalNow Dual Digital PCI-E | Vista Ultimate | Antec 4U22EPS650

Sign the myEPG petition. Go on, you know you want to.....
  Reply With Quote
Old 15th May 2008, 09:24 PM   #7 (permalink)
MC Graduate
No Avatar
Status SonicMonkey is Offline:
ActivityPosts: 76
Reputation & Thanks Support Rating:
SonicMonkey
Points Earned: 12

SonicMonkey has been Thanked 1 times in 1 posts
Re: New Torrent Renamer and Mover app.

You will need .Net Framework 3.5 installed on your system to use this app. It gets installed with Visual Studio 2008, but you can get it separately here.

Excellent start! Would love to see this implemented as a service that runs all the time and detects when new downloads are completed.


Rob
  Reply With Quote
Old 15th May 2008, 09:33 PM   #8 (permalink)
 
ExtremePC's Avatar
Status ExtremePC is Offline:
Location Sydney
ActivityPosts: 4,438
Reputation & Thanks Support Rating:
ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC
Points Earned: 1456

ExtremePC has been Thanked 294 times in 221 posts
Re: New Torrent Renamer and Mover app.

Quote:
Originally Posted by SonicMonkey View Post
You will need .Net Framework 3.5 installed on your system to use this app. It gets installed with Visual Studio 2008, but you can get it separately here.

Excellent start! Would love to see this implemented as a service that runs all the time and detects when new downloads are completed.


Rob
Eventually yeah, but for the moment even though 99.999999% of torrents use a standard naming convention you still find people using their own ...... grrrr.

Changing a few things and making it run as a service is pretty easy, but for now I'm leaving the UI in place as we iron out issues.

For the most part if you download torrents that use the eztv tracker they will invariably be in the right naming format. Another issue I have seen is that for some shows thetvdb has not been as up to the minute as I'd like, so what I've been doing is opeing tv.com and thetvdb at the same time and updating thetvdb database for the shows I regularly download, you need to register (free) on thetvdb and then it will let you update / create entries yourself.
__________________
That which is common to the greatest number has the least care bestowed upon it.
Aristotle
  Reply With Quote
Old 17th May 2008, 01:56 PM   #9 (permalink)
 
ExtremePC's Avatar
Status ExtremePC is Offline:
Location Sydney
ActivityPosts: 4,438
Reputation & Thanks Support Rating:
ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC
Points Earned: 1456

ExtremePC has been Thanked 294 times in 221 posts
Re: New Torrent Renamer and Mover app.

I've made a few updates and changes, and changed its name to TRAMLite.
  • Runs in the background.
  • Removed most of the gui and minimise to the tray on startup.
  • Monitors your download folder and runs whenever there is a new torrent added to the folder.
  • Added a section in the config.xml file to handle file types, you get to specify the types. ie. .avi , .wmv ,.mkv etc etc.
  • Uses next to no resources.
  • Displays messages and errors.

Link to download is here.
__________________
That which is common to the greatest number has the least care bestowed upon it.
Aristotle
  Reply With Quote
The Following 3 Users Say Thank You to ExtremePC For This Useful Post:
Old 19th May 2008, 04:25 PM   #10 (permalink)
MC Graduate
No Avatar
Status SonicMonkey is Offline:
ActivityPosts: 76
Reputation & Thanks Support Rating:
SonicMonkey
Points Earned: 12

SonicMonkey has been Thanked 1 times in 1 posts
Re: New Torrent Renamer and Mover app.

More thanks deserved.

Couple little feature requests/bugs:

* Could the program title matching be made case insensitive? Would save me having to put in every derivative of a program in the exceptions config file. You should see in how many ways Law and Order: Special Victims Unit turns out :-)

* Can you also make the match on the season and episode number case insensitive, so that S01E04 and s01e04 both work? Lots of the stuff I download has this as lower case, but TRAM only seems to work with upper case details.

* Finally, is it possible to get S01.E04 (with the dot separator) working? Same reason as above.

Many thanks

Rob
  Reply With Quote
Old 19th May 2008, 04:37 PM   #11 (permalink)
 
pantonious's Avatar
Status pantonious is Online:
Location Perth, WA
ActivityPosts: 2,558
Reputation & Thanks Support Rating:
pantonious pantonious pantonious pantonious
Points Earned: 351

pantonious has been Thanked 94 times in 94 posts
pantonious's
Media Center
Re: New Torrent Renamer and Mover app.

Wow, thats awesome!

Anychance you could do a Linux port?

suppose i might be able to use it under WINE...
__________________
Dilithium -> A64 X2 4850, ECS 8200A, 2x1024Mb Crucial, Onboard GF8200, 1x80Gb Seagate SATA, 2x250Gb Seagate SATA II in Stripe, Pioneer 212BK, ThermalTake Tenor, HDA X-Plosion, DVICO Dual Tuner, Acer 32" 720p LCD
Trilithium -> A64 X2 4850e, ABIT Nforce Mobo, 2x2GB DDR2-800 Patriot, Sapphire HD2400XT, 160GB Samsung SATA, Pioneer K06 DVD Burner, Hiper Slimline Chassis w/Slimline CPU Cooler, Digital Now Tiny Twin Tuner, Sound Blaster USB, Hisence 42" 1080p LCD TV :):):)
  Reply With Quote
Old 19th May 2008, 06:55 PM   #12 (permalink)