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 > Linux Media Center Solutions > MythTV General Discussion

Community Information

Reply
 
Thread Tools
Old 28th May 2007, 05:19 PM   #1 (permalink)
 
ExtremePC's Avatar
Status ExtremePC is Offline:
Location Sydney
ActivityPosts: 4,413
Reputation & Thanks Support Rating:
ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC ExtremePC
Points Earned: 1450

ExtremePC has been Thanked 291 times in 218 posts
Automatically Renaming and moving torrents

Hi Guys,

Wouldn't it be good if there was a script or app that would automagically rename downloaded torrents of TV Episodes and moved them into an appropriate folder.
ie. if you downloaded the latest episode from the ficticious new show called Last its usually called something like:

Last.S03E23.HR.HDTV.XviD-CTU.avi

Now if you ran said app on it, it would be nice if the file was renamed to:

23. Through the Rabbit Hole (2).avi

And automagically moved to \\Server\TV Shows\Last\Season 3\

The filename can be parsed for all the details like:
TVShowName
SeasonNumber
EpisodeNumber
Using the parsed results you could do a scrape against http://www.epguides.com/TVShowName and parse the resultant page for the EpisodeName.

Then you could rename the file in all sorts of combinations of TVShowName, SeasonNumber, EpisodeNumber, EpisodeName. The combination would probably come from some type of config file you could edit and set your preference.

Moving the file would also be fairly easy so long as there is an existing directory structure or it might test to see if the directory exists and if it doesnt dump it into an unsorted folder like \\Server\TV Shows\Unsorted\

You could even have your favorite torrent client run the app automatically when its finished downloading, most allow you to do that these days.


Just some thoughts.
__________________
That which is common to the greatest number has the least care bestowed upon it.
Aristotle
  Reply With Quote
Old 29th May 2007, 09:18 AM   #2 (permalink)
MCE Graduate
 
Rumbaar's Avatar
Status Rumbaar is Offline:
Location Melbourne, Australia
ActivityPosts: 60
Reputation & Thanks Support Rating:
Rumbaar
Points Earned: 12

Rumbaar has been Thanked 1 times in 1 posts
Re: Automatically Renaming and moving torrents

I'm sure you can rename the save files name directly when you first launch the torrent. So technically the only thing script/app would/should need to do is move it into the appropriate location. But for that you would need to know all the information on the file before you initiated the save.

I like the idea tho and have thought about something similar in the past. uTorrent has the move after download feature but it's a global setting and not individual file setting.
__________________
  Reply With Quote
Old 29th May 2007, 12:06 PM   #3 (permalink)

 
arkay's Avatar
Status arkay is Online:
Location Melbourne
ActivityPosts: 7,154
Reputation & Thanks Support Rating:
arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay
Points Earned: 1595

arkay has been Thanked 264 times in 207 posts
arkay's
Media Center
Re: Automatically Renaming and moving torrents

So what's this "Last" about?

Is it any good?

Cheers,

Arkay.
__________________

The box said 'Requires Windows XP or better' - so I installed Linux . . .
  Reply With Quote
Old 29th May 2007, 12:13 PM   #4 (permalink)

 
simbot82's Avatar
Status simbot82 is Online:
Location Perth
ActivityPosts: 5,224
Reputation & Thanks Support Rating:
simbot82 simbot82 simbot82 simbot82 simbot82 simbot82 simbot82
Points Earned: 821

simbot82 has been Thanked 94 times in 82 posts
Re: Automatically Renaming and moving torrents

I have heard that Last has sparks of sheer brilliance and then dulls you to death for 2 weeks

Extreme, check out "btrenamer" and get in touch with the author. He released an app for download and then removed it but on 1st May made a forum post asking if he should release it.
  Reply With Quote
Old 29th May 2007, 01:39 PM   #5 (permalink)
MCE Specialist
 
Z0r0b's Avatar
Status Z0r0b is Offline:
Location Singapore
ActivityPosts: 287
Reputation & Thanks Support Rating:
Z0r0b
Points Earned: 29

Z0r0b has been Thanked 6 times in 6 posts
Re: Automatically Renaming and moving torrents

I've been thinking about doing this for ages. Set Az to copy downloaded files to some directory. After download, run a prog to unrar, rename and move files to other directory based on some ini file somewhere. I've just been too lazy to do it.
  Reply With Quote
Old 29th May 2007, 01:49 PM   #6 (permalink)

 
arkay's Avatar
Status arkay is Online:
Location Melbourne
ActivityPosts: 7,154
Reputation & Thanks Support Rating:
arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay
Points Earned: 1595

arkay has been Thanked 264 times in 207 posts
arkay's
Media Center
Re: Automatically Renaming and moving torrents

I just spent an hour cutting perl code to see how easy this would be. It sounds simple. But it isn't. The html output from epgguides is all over the place.. Had it working for "Last" but when I tried it for "23" it failed.... It seems too inconsistent. I'd hate to imagine the amount of code you'd have to write to get it to be reliable. If you know of a site that lists episode numbers,names and descriptions in a comma delimited standard format that would be real nice..

Cheers,

Arkay.
__________________

The box said 'Requires Windows XP or better' - so I installed Linux . . .
  Reply With Quote
Old 29th May 2007, 01:55 PM   #7 (permalink)
 
supafly's Avatar
Status supafly is Offline:
Location Brisbane
ActivityPosts: 2,093
Reputation & Thanks Support Rating:
supafly supafly supafly supafly
Points Earned: 318

supafly has been Thanked 71 times in 64 posts
supafly's
Media Center
Re: Automatically Renaming and moving torrents

would be terrific if there was a plugin/app that could do this, for now im just renaming by hand (like everyone else), i tend to name them like this:

Entourage: S03 E19 - The Prince's Bride
__________________
Follow me on
  Reply With Quote
Old 29th May 2007, 02:06 PM   #8 (permalink)

 
simbot82's Avatar
Status simbot82 is Online:
Location Perth
ActivityPosts: 5,224
Reputation & Thanks Support Rating:
simbot82 simbot82 simbot82 simbot82 simbot82 simbot82 simbot82
Points Earned: 821

simbot82 has been Thanked 94 times in 82 posts
Re: Automatically Renaming and moving torrents

http://www.matthew.ath.cx/cgi-bin/ma...tml?btrename+1

Check this one out, might try and get this working
  Reply With Quote
Old 29th May 2007, 05:10 PM   #9 (permalink)
MCE Specialist
 
Z0r0b's Avatar
Status Z0r0b is Offline:
Location Singapore
ActivityPosts: 287
Reputation & Thanks Support Rating:
Z0r0b
Points Earned: 29

Z0r0b has been Thanked 6 times in 6 posts
Re: Automatically Renaming and moving torrents

Quote:
Originally Posted by arkay View Post
I just spent an hour cutting perl code to see how easy this would be. It sounds simple. But it isn't. The html output from epgguides is all over the place.. Had it working for "Last" but when I tried it for "23" it failed.... It seems too inconsistent. I'd hate to imagine the amount of code you'd have to write to get it to be reliable. If you know of a site that lists episode numbers,names and descriptions in a comma delimited standard format that would be real nice..

Cheers,

Arkay.
html from epguides seems quite straight forward to scrape. The TV listing is space delimited and appears to be fixed format as well (at least it is for last, 23 and 2 other shows i checked).

I looked at the source of http://epguides.com/23/ and http://epguides.com/last/ and the tv listing data is consistent:
* episode number, pos 7 (5 chars - SS-EE where SS is season and EE is episode, left padded with space - eg. " 3- 3" season 3 episode 3)
* episode name, pos 40 to end of string (extract text from <a> tag).

To find the line in the source, look for the line with matching episode number at pos 7. Doubt that you would get more than 1 match (if you do the spacing right).

I checked a few other shows and they were all consistent with this format.
  Reply With Quote
Old 29th May 2007, 05:20 PM   #10 (permalink)

 
arkay's Avatar
Status arkay is Online:
Location Melbourne
ActivityPosts: 7,154
Reputation & Thanks Support Rating:
arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay
Points Earned: 1595

arkay has been Thanked 264 times in 207 posts
arkay's
Media Center
Re: Automatically Renaming and moving torrents

Wasn't what I saw between last and 23.

Just had another look though and it does appear to be consistent. Hmmm. Pity I deleted the code I wrote in a fit of "WTF?"

I might have another look at this.. Would be a sweet way of populating the mythTV database with valid descriptions for any show... and of course could be useful as a torrent re-namer

Cheers,

Arkay.
__________________

The box said 'Requires Windows XP or better' - so I installed Linux . . .
  Reply With Quote
Reply

Bookmarks

Thread Tools



Advertisers
Terms Of Service - Contact Us - Advertise With Us - Archive - Privacy Statement - FAQ
Microsoft©, Windows XP©, Windows XP Media Center© & Windows Vista© are registered trademarks of Microsoft Corporation.
www.xpmediacentre.com.au has no relationship with, nor is affiliated in any way with Microsoft Corporation.
All original content on this website © 2004 - 2008 xpmediacentre.com.au, All rights reserved
Forum by vBulletin Version 3.7.3 - Copyright Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
Local time now is 12:31 AM AEDT.