SnapStream Forums

Go Back   SnapStream Forums > SnapStream Developer Network > Development Discussion
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-16-2008, 11:02 AM
tmar89 tmar89 is offline
l33t Member
 
Join Date: Mar 2005
Location: Whitehall, PA
Posts: 1,206
Send a message via AIM to tmar89 Send a message via Yahoo to tmar89
TheTVDB.com Tagger Plugin for BTVShowInfo

Overview
I developed a plugin for BTVShowInfo which parses the filename for the series name, season number and episode number and then searches for the show metadata on TheTVDB.com. It will pull the metadata and populate the episode title, description and date for use in the BTV Library. Currently it supports the following example formats:

Series.S01E01~.ext
Series.S2E12~.ext
Series.SSxEE~.ext
Series.SxEE~.ext
Series.SSEE~.ext
Series.SEE~.ext

It also supports _ and a space for the spacer instead of .
It is not case sensitive so this would work too:
series_s01e14_blah.avi

If the file format is not supported, the application will ask you to enter the series, season number and episode number manually.

Also supported is the ability to search for metadata for a BTV Recorded Show using the original air date as the search parameter.

Installation
Extract the DLL file and copy to the Plugins directory of BTVShowInfo.

Usage
Highlight the row(s) that you want to search metadata for and then click the Plugins menu and select "Import show metadata from TheTVDB.com".

History
Version 1.1
-Supports pulling show info for BTV recorded shows using the original air date

Version 1.0
-Initial release

Report all bugs, comments and questions here.
Attached Files
File Type: zip PluginTagFromTheTVDB.zip (6.0 KB, 243 views)
__________________
TheTVDB.com Tagger|IMDb Movie Tagger Plugin|BTV File Renamer
BTV: Gigabyte GA-MA78GM, 2GB RAM, AMD64 X2 2.6GHz, WinXP SP3, HVR-2250 Dual ClearQAM, HD-PVR, Plex Media Server
Link: Dell XPS 420
TV: LG 55LW5600 with Plex

Last edited by tmar89; 07-28-2009 at 01:52 PM.
Reply With Quote
  #2  
Old 12-16-2008, 11:17 AM
geoffstewart's Avatar
geoffstewart geoffstewart is offline
Registered User
 
Join Date: May 2001
Location: Ottawa,ON,Canada
Posts: 561
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

very cool... been thinking about a tool like this for a while.

This is great for the shows you miss with BTV for some reason. I will definitely use this.

Had you considered using the engine and API hooks to thetvdb.com to go the other way? I mean, given a show recorded with BTV, get the season and episode information. This type of tool would let you integrate shows recorded with BTV into MediaPortal's MyTVSeries plugin (which is really slick, by the way). With something like that I would post process each recording and change the filename to include the season and episode using a batch file.

Thanks.

Geoff
__________________

Reply With Quote
  #3  
Old 12-16-2008, 11:22 AM
tmar89 tmar89 is offline
l33t Member
 
Join Date: Mar 2005
Location: Whitehall, PA
Posts: 1,206
Send a message via AIM to tmar89 Send a message via Yahoo to tmar89
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Quote:
Originally Posted by geoffstewart View Post
Had you considered using the engine and API hooks to thetvdb.com to go the other way? I mean, given a show recorded with BTV, get the season and episode information. This type of tool would let you integrate shows recorded with BTV into MediaPortal's MyTVSeries plugin (which is really slick, by the way). With something like that I would post process each recording and change the filename to include the season and episode using a batch file.
I never thought of that because I'm planning on sticking with BTV for my TV shows. I've looked into XBMC, Meedio and MP and while I agree that some have really slick interfaces with banner art and fan art, I just planning on staying with BTV (and BM for DVDLibrary and my XM Radio plugin). But to get to the point, it is possible to match the original air dates to get the season and episode info to generate a filename. But that's probably a topic for another post.
__________________
TheTVDB.com Tagger|IMDb Movie Tagger Plugin|BTV File Renamer
BTV: Gigabyte GA-MA78GM, 2GB RAM, AMD64 X2 2.6GHz, WinXP SP3, HVR-2250 Dual ClearQAM, HD-PVR, Plex Media Server
Link: Dell XPS 420
TV: LG 55LW5600 with Plex
Reply With Quote
  #4  
Old 12-16-2008, 01:07 PM
cfaslave cfaslave is offline
l33t Member
 
Join Date: Oct 2004
Location: KC, Missouri
Posts: 2,772
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Cool.

So is this mostly for non-BTV recorded content or does it add metadata that you don't already get with BTV-recorded shows also?
__________________
HTPC and all-around Gadget Junkie

Geek Tonic Blog

Follow me on Twitter
Reply With Quote
  #5  
Old 12-16-2008, 01:11 PM
tmar89 tmar89 is offline
l33t Member
 
Join Date: Mar 2005
Location: Whitehall, PA
Posts: 1,206
Send a message via AIM to tmar89 Send a message via Yahoo to tmar89
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Quote:
Originally Posted by cfaslave View Post
Cool.

So is this mostly for non-BTV recorded content or does it add metadata that you don't already get with BTV-recorded shows also?
So far this is only for non-BTV recorded content since it is based solely on the file name. It is focused towards the crowds that organize their TV show files in such the manner I discussed in the first post.

I believe that BTV-recorded shows already contains the first aired date, episode title and episode description, so there is no extra metadata that can be pulled from TheTVDB.com which is necessary. This plugin is more focused on taking shows that would be classified as "Unknown" in the BTV Library and correctly organize them with an existing BTV Library, which could include shows that have been recorded with BTV.
__________________
TheTVDB.com Tagger|IMDb Movie Tagger Plugin|BTV File Renamer
BTV: Gigabyte GA-MA78GM, 2GB RAM, AMD64 X2 2.6GHz, WinXP SP3, HVR-2250 Dual ClearQAM, HD-PVR, Plex Media Server
Link: Dell XPS 420
TV: LG 55LW5600 with Plex
Reply With Quote
  #6  
Old 12-17-2008, 03:12 PM
jrandeck jrandeck is offline
l33t Member
 
Join Date: May 2007
Posts: 324
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Is there a way to tell BTV to put the season and episode numbers in the file name?
Reply With Quote
  #7  
Old 12-17-2008, 07:23 PM
tmar89 tmar89 is offline
l33t Member
 
Join Date: Mar 2005
Location: Whitehall, PA
Posts: 1,206
Send a message via AIM to tmar89 Send a message via Yahoo to tmar89
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Quote:
Originally Posted by jrandeck View Post
Is there a way to tell BTV to put the season and episode numbers in the file name?
From a BTV recorded show?
__________________
TheTVDB.com Tagger|IMDb Movie Tagger Plugin|BTV File Renamer
BTV: Gigabyte GA-MA78GM, 2GB RAM, AMD64 X2 2.6GHz, WinXP SP3, HVR-2250 Dual ClearQAM, HD-PVR, Plex Media Server
Link: Dell XPS 420
TV: LG 55LW5600 with Plex
Reply With Quote
  #8  
Old 12-17-2008, 09:17 PM
jrandeck jrandeck is offline
l33t Member
 
Join Date: May 2007
Posts: 324
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Yes. It would be handy if there was an easy way to tell BTV to put the "S01E01" in the filename. Maybe there is and I just haven't found it yet...
Reply With Quote
  #9  
Old 01-04-2009, 12:49 PM
anomaly07 anomaly07 is offline
Registered User
 
Join Date: Nov 2006
Posts: 9
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Quote:
Originally Posted by jrandeck View Post
Yes. It would be handy if there was an easy way to tell BTV to put the "S01E01" in the filename. Maybe there is and I just haven't found it yet...
I am actually working on a project in which you will Showsqueeze what you want to import to XBMC or Boxee, my script is written in PHP (web server not required) and will rename your files according to tvrage.com's episode titles, it's not perfect, but it works most of the time! I have a log for when the thing fails. It will move files from the OLDDIR (a directory in which you have your showsqueezed files) to the NEWDIR (a directory that you may or may not have watched by BeyondTV, but it is watched by XBMC or Boxee) and will rename them as such ShowName\ShowName.S##E## (EpisodeName).ext. If it does not detect an "EpisodeName" it will not rename the file but simply move it to the NEWDIR into a folder called "Movies". So it organizes them in FOLDERS :-D. I'm pretty much done with the project but, I'm about to add in MetaDataExtractor.exe into my project so that the metadata will be transferred from the showsqueezed location (OLDDIR) to the new "moved location" (NEWDIR). When I saw that tvrage.com's feeds for tvshows I new that this would be a trivial project, (just taking some time). I've put a little over 24 hours on the project and once I add in the metadata moving capabilities I will publish the project for all to enjoy!
Reply With Quote
  #10  
Old 01-06-2009, 09:47 AM
anomaly07 anomaly07 is offline
Registered User
 
Join Date: Nov 2006
Posts: 9
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Well I've done a little more work on it. You should probably read this thread on Boxee's forum to get some more insight to what I'm doing. But it's all in the readme as well. Here is a link to my version 1 release of BTVRenamer http://files.bryanprice.info/BTVRenamer.zip. Have fun!
Reply With Quote
  #11  
Old 01-07-2009, 05:51 PM
Bloggator Bloggator is offline
Registered User
 
Join Date: Feb 2006
Posts: 49
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Quote:
Originally Posted by tmar89 View Post
Installation
Extract the DLL file and copy to the Plugins directory of BTVShowInfo.

Usage
Highlight the row(s) that you want to search metadata for and then click the Plugins menu and select "Import show metadata from TheTVDB.com".
Thanks for this. I've been waiting for something like this for years.

I think I'm a little thick, though, because I have two problems:

1. I can't find a Plugins directory in BTVShowInfo. I created one and put the dll inside. Is that right?
2. Where do I hightlight the rows and to search? In the Web Admin? I went there and can't find a Plugins menu.

Any help would be appreciated.

Thanks,
Jeff
Reply With Quote
  #12  
Old 01-07-2009, 06:52 PM
tmar89 tmar89 is offline
l33t Member
 
Join Date: Mar 2005
Location: Whitehall, PA
Posts: 1,206
Send a message via AIM to tmar89 Send a message via Yahoo to tmar89
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Quote:
Originally Posted by Bloggator View Post
1. I can't find a Plugins directory in BTVShowInfo. I created one and put the dll inside. Is that right?
There should be a Plugins directory by default when you extract the BTVShowInfo zip file. If not, maybe it will work if you create one.

Quote:
Originally Posted by Bloggator View Post
2. Where do I hightlight the rows and to search? In the Web Admin? I went there and can't find a Plugins menu.
I'm not sure if you're using the right program. BTVShowInfo is a standalone application you run. It will connect to your BTV server and pull all the shows in the BTV library. You then highlight each row by clicking on the gray tab on the left.
__________________
TheTVDB.com Tagger|IMDb Movie Tagger Plugin|BTV File Renamer
BTV: Gigabyte GA-MA78GM, 2GB RAM, AMD64 X2 2.6GHz, WinXP SP3, HVR-2250 Dual ClearQAM, HD-PVR, Plex Media Server
Link: Dell XPS 420
TV: LG 55LW5600 with Plex
Reply With Quote
  #13  
Old 01-08-2009, 08:15 AM
jrandeck jrandeck is offline
l33t Member
 
Join Date: May 2007
Posts: 324
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Quote:
Originally Posted by anomaly07 View Post
I am actually working on a project in which you will Showsqueeze what you want to import to XBMC or Boxee, my script is written in PHP (web server not required) and will rename your files according to tvrage.com's episode titles, it's not perfect, but it works most of the time!
That sounds sweet! I'll have to check it out when I have a chance.
Reply With Quote
  #14  
Old 01-08-2009, 09:59 AM
Bloggator Bloggator is offline
Registered User
 
Join Date: Feb 2006
Posts: 49
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

Thanks tmar89!

I've got it working and it's perfect! Thanks for the help.

Jeff
Reply With Quote
  #15  
Old 01-22-2009, 08:25 AM
Randyre Randyre is offline
Registered User
 
Join Date: Jan 2006
Posts: 19
Re: TheTVDB.com Tagger Plugin for BTVShowInfo

So far this works great!, this type of thing should have been part of BTV native.

Anyhow, one question I have is, can I set both directories to be the same one, so I don't have to manage so many directories?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BTVShowInfo jmaver Development Discussion 157 11-25-2010 10:53 PM
Run File Tagger manually on mpg? flyinwolf Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 0 03-14-2008 03:48 PM
BTV Link DVD plugin vs BTV DVD plugin Cross673 Beyond TV and Beyond TV Link 3 10-12-2007 04:57 PM
TV Episode Library Plugin (Based on the DVD Library Plugin) gaines Development Discussion 8 10-07-2006 09:14 AM


All times are GMT -6. The time now is 05:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
©2004-2009 Snapstream Media
You Rated this Thread: