SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #261  
Old 06-19-2008, 10:28 PM
mike1961 mike1961 is offline
Sage Icon
 
Join Date: Dec 2005
Location: California
Posts: 1,555
Quote:
Originally Posted by cpainter View Post
I too would love to have this feature. Not only this but theater show times as well. Just curious if other users of SageTV would be willing to pay a little extra to have all the features of IMDB, including streaming trailers, properly integrated and part of the experience.

Like Nielm mentioned. Whether its IMDB or some other service, to properly (legally) incorporate it, there are significant fees associated with doing so. Yet, it is a great feature.
CPainter - Showtimes are already available with the MovieTimes add on. It gets them from Yahoo and you can select any zip code or zip codes near you.

Mike
Reply With Quote
  #262  
Old 06-20-2008, 04:41 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Quote:
Originally Posted by nielm View Post
Ok... ill get onto it. They have taken down the old site layout that I was using to parse...

It may take a while to fix as the HTML parser may have to be re-worked, and depending on how much the layhout has changed this could be a lot of work...

And I truly hate screen scraping HTML with a passion especially on sites like IMDB that are machine generated but poorly written and do not even validate in an [X]HTML parser (882 errors, and just look at line 434!)... (I also maintain the belgian XMLTV grabber which uses screen scraping.)

Note, as mentioned previously: as this plugin is legally dubious, Sage is unlikely to make this a core feature unless they set up a licencing deal with the IMDB ($15,000/yr minimum), which is also unlikely...
Is there a separate method which could be used? http://imdbpy.sourceforge.net/
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT

Last edited by bcjenkins; 06-20-2008 at 05:07 AM.
Reply With Quote
  #263  
Old 06-20-2008, 07:44 AM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Quote:
Originally Posted by bcjenkins View Post
Is there a separate method which could be used? http://imdbpy.sourceforge.net/
Interesting.. IMDB provides a text version of the database.. for personal non-comercial use.

http://www.imdb.com/interfaces.html#plain

I don't know how often the database is updated... but it might be worth looking into.. How would people feel about keeping a 1GB (I'm guessing uncompressed) on their HTPC machine? I know that's less than .5% for me!
Reply With Quote
  #264  
Old 06-21-2008, 01:52 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
IMDB Format change

Hi.

For about a week now, all (most) of my IMDB information fields are blank.

Has the IMDB format changed and this import no longer picks up the new format?

Anyone else having this problem?
Reply With Quote
  #265  
Old 06-21-2008, 02:02 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
did you read the last weeks postings in this thread? IMDB changed the layout of the webpages and nielm's webscraping of the IMDB no longer works. nielm will need to recode the IMDB plugin to work iwth the new pages.
__________________
- Jack
__________________________________________
Server: AMD Phenom 9750, 2GB RAM, 2 Hauppauge PVR500, 1 Firewired DCT6200, 1 HDHomerun tuning 2 QAM channels, Vizio 37" HDTV LCD, 1 USB-UIRT

Clients: 1 MediaMVP, 1 Placeshifter Client, & 1 SageTV Client.
Reply With Quote
  #266  
Old 06-21-2008, 06:47 PM
Zippster's Avatar
Zippster Zippster is offline
Sage Aficionado
 
Join Date: Jun 2008
Location: Buffalo NY
Posts: 314
Quote:
Originally Posted by nielm View Post
Ok... ill get onto it. They have taken down the old site layout that I was using to parse...

It may take a while to fix as the HTML parser may have to be re-worked, and depending on how much the layhout has changed this could be a lot of work...

And I truly hate screen scraping HTML with a passion especially on sites like IMDB that are machine generated but poorly written and do not even validate in an [X]HTML parser (882 errors, and just look at line 434!)... (I also maintain the belgian XMLTV grabber which uses screen scraping.)

Note, as mentioned previously: as this plugin is legally dubious, Sage is unlikely to make this a core feature unless they set up a licencing deal with the IMDB ($15,000/yr minimum), which is also unlikely...
Reply With Quote
  #267  
Old 06-21-2008, 07:05 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by jbuszkie View Post
Interesting.. IMDB provides a text version of the database.. for personal non-comercial use.

http://www.imdb.com/interfaces.html#plain

I don't know how often the database is updated... but it might be worth looking into.. How would people feel about keeping a 1GB (I'm guessing uncompressed) on their HTPC machine? I know that's less than .5% for me!
It's not the space, its accessing it...
The text files have to be put into some form of database to make them actually useful.
However then there are the facts that they do not contain all the info that is in the IMDB, there are no sensible 'keys' in the text files for cross-linking, and sometimes the data in the text files is corrupt. Not to mention that the supplied programs either do not compile, do not run, or do not cope with the size that the DB has grown to since they were originally written....

(I wasted a lot of time looking at using the text files when I wanted to be 'honest' about the IMDB plugin)

For a program that does use the text files, see jmdb -- note that this requires an installation of mysql or postgresql...


Anyway... I am half way through... Searching and getting info for people now works, info for titles is in progress..
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #268  
Old 06-21-2008, 10:14 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Quote:
Originally Posted by nielm View Post

Anyway... I am half way through... Searching and getting info for people now works, info for titles is in progress..
I did not know the details.

Thanks Nielm - your module makes SageTV for us worth while.
Reply With Quote
  #269  
Old 06-22-2008, 02:03 AM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Thank you so much Neil! As you can see, there are a lot of people who love this plugin.

I didnt realize what a pain it is to maintain this. No wonder, you didn't seem too thrilled about my idea to support imdb movie trailers (integrated into SageTV detailed info.

I can't speak for everyone else, but I would gladly donate in a heartbeat for this plugin.. I didn't realize how much I use this plugin until after it stopped working.

Quote:
Originally Posted by nielm View Post
Ok... ill get onto it. They have taken down the old site layout that I was using to parse...

It may take a while to fix as the HTML parser may have to be re-worked, and depending on how much the layhout has changed this could be a lot of work...

And I truly hate screen scraping HTML with a passion especially on sites like IMDB that are machine generated but poorly written and do not even validate in an [X]HTML parser (882 errors, and just look at line 434!)... (I also maintain the belgian XMLTV grabber which uses screen scraping.)

Note, as mentioned previously: as this plugin is legally dubious, Sage is unlikely to make this a core feature unless they set up a licencing deal with the IMDB ($15,000/yr minimum), which is also unlikely...
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #270  
Old 06-22-2008, 02:04 AM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
I dont think this supports actor picture, movie cover, or the potential to support flash movie trailers.

Quote:
Originally Posted by jbuszkie View Post
Interesting.. IMDB provides a text version of the database.. for personal non-comercial use.

http://www.imdb.com/interfaces.html#plain

I don't know how often the database is updated... but it might be worth looking into.. How would people feel about keeping a 1GB (I'm guessing uncompressed) on their HTPC machine? I know that's less than .5% for me!
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #271  
Old 06-22-2008, 12:03 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I am not sure if this helps at all, but my understanding (from reading this link... "http://www.avidardik.com/2007/02/27/imdb-interface-changes/") is that the old interface is still available by replacing the "www" with "former" when accessing the site.

Ken
Reply With Quote
  #272  
Old 06-22-2008, 12:07 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Quote:
Originally Posted by jusjoken View Post
I am not sure if this helps at all, but my understanding (from reading this link... "http://www.avidardik.com/2007/02/27/imdb-interface-changes/") is that the old interface is still available by replacing the "www" with "former" when accessing the site.

Ken
So what needs to be done to use the "former" version? Or is this a temp fix in that it will eventually be dropped as well?
Reply With Quote
  #273  
Old 06-22-2008, 12:59 PM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,132
Quote:
Originally Posted by joe123 View Post
So what needs to be done to use the "former" version? Or is this a temp fix in that it will eventually be dropped as well?
The "former" version was the one being used by the import, and it has been dropped.

John
Reply With Quote
  #274  
Old 06-23-2008, 10:04 AM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Quote:
Originally Posted by JREkiwi View Post
The "former" version was the one being used by the import, and it has been dropped.

John
Ah ok! Now it makes sense. This module is one of the best modules available for SageTV.

I hope SageTV is $giving$ Neil something for his efforts. I am willing to contribute as well.

The wify is using SageTV less now She loved being able to get film info on the spot.
Reply With Quote
  #275  
Old 06-24-2008, 08:46 PM
ldavis ldavis is offline
Sage Aficionado
 
Join Date: Aug 2003
Posts: 388
IMDB search issue (both stock and SageMC STV)

Is anyone else having an issue with the IMDB search. I have tried with both SageMC and the stock STV. It finds the title and cover art along with some bits of information (quotes) but most of the information is missing. I have tried this on a couple of machines with different installations and get the same result. I wonder if the format on the IMDB website has changed.

* merged *
Reply With Quote
  #276  
Old 06-24-2008, 09:34 PM
Addict's Avatar
Addict Addict is offline
Sage Aficionado
 
Join Date: Apr 2007
Location: San Diego, CA
Posts: 335
Yep, I've had the same issue for a while. I figured it had something to do with the new beta code I'm using and that SageMC hasn't been updated to work with the new releases yet...and probably won't be until 1) on official Sage release comes out and 2) the guys get around to updating SageMC.

Of course, I could be wrong on my reasoning as to why it's failing...?
__________________
Al Bsharah / Twitter
Clients:
Two STX-HD100 High-Def Extenders
Media Server / NAS:
Case: Thermaltake Armor CPU: AMD Opteron 1218 (2.6GHz Dual Core) Motherboard: ASUS MN2-LR Memory: 2GB Gfx Card: Headless Tuner: Hauppauge HD-PVR, Hauppauge PVR-350 (not in use) O/S: Windows 7 Sage: Latest RAID: On-Board Drives: 6 x 1.5TB SATA RAID-5, 2 x 80GB IDE RAID-1 (O/S) Storage: 7.5TB Total
Reply With Quote
  #277  
Old 06-24-2008, 09:42 PM
othy othy is offline
Sage Advanced User
 
Join Date: Aug 2003
Posts: 147
Quote:
Originally Posted by Addict View Post
Yep, I've had the same issue for a while. I figured it had something to do with the new beta code I'm using and that SageMC hasn't been updated to work with the new releases yet...and probably won't be until 1) on official Sage release comes out and 2) the guys get around to updating SageMC.

Of course, I could be wrong on my reasoning as to why it's failing...?
The plugin (and the implementation of it in SageMC) used a legacy version of IMDB that the site has now discontinued. In other words, the plugin has to be corrected so that it scrapes data from the newer version of IMDB.

It's just coincidence that many people noticed this right after they updated their SageTV to the newest beta.

Tim
__________________
Server: WHS, Phenom 9150e Quad-Core, 2.0TB for recordings (pooled). HD-PVR (w/USB-UIRT), HDHR, ATI550.
Clients: HD200 (wired), HD100 (wireless via Netgear WNHDEB111).
Reply With Quote
  #278  
Old 06-29-2008, 03:41 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
V 6.8 released

Released 29 Jul 2008 v6.8 for SageTV v6.4 (Download)
  • JAR: Fixed website parsing
  • STVI: for Sage 6.4 only
  • STVI: Add Google search for movie trailers
  • STVI: Add IMDB search to Online Services menu.

NOTE
Users of older versions of Sage, and SageMC users only need to replace the JAR file in their installations, and restart Sage.
There is no need to re-import, unless you are running 6.4 beta, and want to search for trailers


I have completely re-written the website parsing code, and hopefully made it a bit more robust.. This may result in a few problems -- if you find some, please let me know which movie causes the problem...

This re-write resulted in some horrible regular expressions... for instance, the following Java RE for matching and extracting the information for a filmography item for a person:

Code:
"^([^<]*)</a>(\\s*\\([0-9?]{4}[^)]*\\))?\\s*(\\(\\p{javaUpperCase}+\\))?(\\s*<small>.*?</small>)?(\\s*<i>\\(<a href=\"http://pro.imdb.com/[^\"]*\">.*?</a>\\)</i>)?(\\s*\\([^)]*\\))?(\\s*\\(\\d+ episodes?, [^)]*\\))?(\\s*<br/>.*)?"
It is better commented in the code, but it still gives me a headache!
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #279  
Old 06-29-2008, 06:19 PM
appelm appelm is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Chappaqua, NY
Posts: 323


Thanks nielm! Works great again! wow did I miss this this.


I updated data for several dvds and all worked except one. I had the following error "IMDB read failed: net.sf.sageplugins.sageimdb.DbFailureException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1"

I think it may have something to do with the movie title length. The movie is "Magnificent Desolation: Walking on the Moon 3D" http://www.imdb.com/title/tt0401623/ .

Thanks again,
Marc
Reply With Quote
  #280  
Old 06-29-2008, 07:14 PM
cryoforever cryoforever is offline
New Member
 
Join Date: Jun 2007
Posts: 1
Thank You

Thank You very much for updating this for the rest of us.. I appreciate your time and hard work.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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
Batch IMDB import? Toddupton SageTV Customizations 19 07-21-2008 03:02 PM
Import DVD Profiler xml into default STV wags119 SageTV Customizations 7 10-30-2006 07:35 PM
STV: SageMC 16x9 11/26/2005 Sage 4.x Version 5_10 mlbdude SageMC Custom Interface 2160 09-01-2006 03:36 PM
STV: Cayars17 Ultimate STV (Release 17 - Jan 18) Cayars SageTV Customizations 3664 12-13-2005 05:35 PM
STV IMPORTS: Nielm STV Modules (Apr 20 update) nielm SageTV Customizations 84 10-19-2005 12:02 PM


All times are GMT -6. The time now is 09:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.