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
  #321  
Old 10-27-2008, 07:57 PM
flashbacck flashbacck is offline
Sage Aficionado
 
Join Date: May 2004
Posts: 326
need guinea pig

Attached is a zip w/ a modified nielm_sageimdb.jar. I'm out of town and can't test this, but if someone here would like to try it, I'd appreciate it.

To install, move the old nielm_sageimdb.jar in the JARs directory to another directory, then unzip this one into the JARs directory. Probably need to restart Sage.

Ratings and episodes should be fixed. I think something's f'd up with filmography data and I'm not sure if images are working. edit: n/m filmography and images should be fine.

I reject all responsibility for any computers assploding.
Attached Files
File Type: zip nielm_sageimdb.zip (27.8 KB, 225 views)
__________________
C2D e6320
P4M800Pro, 1gb DDR, 1100GB HDs
Hauppauge HVR-1600, HDHomerun, Geforce 6200

Last edited by flashbacck; 10-27-2008 at 11:08 PM.
Reply With Quote
  #322  
Old 10-28-2008, 07:51 AM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
I was hoping someone would have time to fix this! I've been too lazy to look into it. Now I don't have to. Thanks flashback!

I'm sure someone will test this before me.. but I'll get to it eventually...

Jim
Reply With Quote
  #323  
Old 11-04-2008, 01:48 PM
flashbacck flashbacck is offline
Sage Aficionado
 
Join Date: May 2004
Posts: 326
minor fix

minor fix to first episode in episodes list not showing correct title.
Attached Files
File Type: zip nielm_sageimdb.zip (42.5 KB, 210 views)
__________________
C2D e6320
P4M800Pro, 1gb DDR, 1100GB HDs
Hauppauge HVR-1600, HDHomerun, Geforce 6200
Reply With Quote
  #324  
Old 11-04-2008, 02:32 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by flashbacck View Post
minor fix to first episode in episodes list not showing correct title.

Thanks that works great.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #325  
Old 11-14-2008, 06:38 AM
bunch92 bunch92 is offline
Sage Aficionado
 
Join Date: Oct 2008
Location: France / UK
Posts: 335
Last week I recorded I,Robot (the movie with Will Smith). For some reason, it was called I,Robot **** ( as it had a four star rating ) in the program guide. When I am trying to search details for this movie in IMDB , it returns 1 hit ( Don't F*** with Me, I Have 51 Brothers and Sisters )

Is there a way the IMDB customization can remove these special character "*" before doing the search ?

Thank you.
__________________
Server : Asus M4A79XTD Evo / AMD Phenom II X4 955 @ 3.2GHz / 4Gb RAM / Win 10 64-bit / Cinergy 2400iDT (French Freeview - TNT) / 2 * Hauppauge NOVA-HD-S2 (UK Sky) / TT CT-3650 CI / HDD : 4.5 To / Sage V7 / XMLTV Importer / EPG from WebGrabPlus+/ LM DVB Recorder for all tuners / 2 Clients : STP-HD300
Reply With Quote
  #326  
Old 11-16-2008, 03:41 PM
flashbacck flashbacck is offline
Sage Aficionado
 
Join Date: May 2004
Posts: 326
Quote:
Originally Posted by bunch92 View Post
Last week I recorded I,Robot (the movie with Will Smith). For some reason, it was called I,Robot **** ( as it had a four star rating ) in the program guide. When I am trying to search details for this movie in IMDB , it returns 1 hit ( Don't F*** with Me, I Have 51 Brothers and Sisters )

Is there a way the IMDB customization can remove these special character "*" before doing the search ?

Thank you.
Is this a chronic problem? It sounds like an error on the part of the EPG data.
__________________
C2D e6320
P4M800Pro, 1gb DDR, 1100GB HDs
Hauppauge HVR-1600, HDHomerun, Geforce 6200
Reply With Quote
  #327  
Old 11-17-2008, 03:42 AM
bunch92 bunch92 is offline
Sage Aficionado
 
Join Date: Oct 2008
Location: France / UK
Posts: 335
Thx for reply. In fact, it only does it for that specific movie, so it is not a problem. All the other movies, even with stars (*) in the title are correctly retrieved from the Imdb database.

So all is good, cheers.
__________________
Server : Asus M4A79XTD Evo / AMD Phenom II X4 955 @ 3.2GHz / 4Gb RAM / Win 10 64-bit / Cinergy 2400iDT (French Freeview - TNT) / 2 * Hauppauge NOVA-HD-S2 (UK Sky) / TT CT-3650 CI / HDD : 4.5 To / Sage V7 / XMLTV Importer / EPG from WebGrabPlus+/ LM DVB Recorder for all tuners / 2 Clients : STP-HD300
Reply With Quote
  #328  
Old 12-02-2008, 09:50 PM
cmaffia's Avatar
cmaffia cmaffia is offline
Sage Expert
 
Join Date: May 2004
Posts: 612
Send a message via Yahoo to cmaffia
IMDB Broke

Hey can anyone confirm if IMDB via Sage is broke?
I just used it yesterday and today it seems that possibly they changed the search URL.
THanks
__________________
Server: Dual Tuner: PVR-150MCE/PVR-250MCE/SageTV v5.02/Asus Pundit-R 2.4GHZ/512MB DDR RAM/250 GB Maxtor HD (8MB Buffer) External Seagate 400GB HD via USB 2.0/Onboard ATI 9100 using SVIDEO TV-Out/Nvidia DVD decoder/Actisys 200L IR Blaster (Dish receiver) USBUIRT (DirectTV receiver)/Lite-On 4X DVD-R/RW/Windows XP Pro SP2/Adesso Mini IR Keyboard w/integrated mouse/Tivo "Peanut" Remote via USBUIRT/Dish Network Model 301/DirectTV subscriber/Webserver Plugin v2.8
Reply With Quote
  #329  
Old 12-02-2008, 10:01 PM
fiatmonkey fiatmonkey is offline
Sage User
 
Join Date: Apr 2008
Posts: 37
getting 403 error message when attempting an IMDB search

Hi,

I just started getting a java exception when doing an IMDB lookup. The Sagetv interface displays the URL path, IO error and HTTP error 403. Has anyone else recently have this occur?

I took the URL and path from the error message and was successfully able to bring up the IMDB site in a browser and view the results.

Any thoughts? I have not debugged sagetv yet but I wanted to see if there was a common issues or not.

Thanks!
Reply With Quote
  #330  
Old 12-02-2008, 10:08 PM
rember rember is offline
Sage User
 
Join Date: Jul 2008
Posts: 12
yeah same problem here, i hope there is solution soon
Reply With Quote
  #331  
Old 12-03-2008, 01:02 AM
vexhold's Avatar
vexhold vexhold is offline
Sage Aficionado
 
Join Date: Mar 2008
Location: Hastings, MN
Posts: 353
here too
Reply With Quote
  #332  
Old 12-03-2008, 07:10 AM
floyd_2 floyd_2 is offline
Sage User
 
Join Date: Nov 2008
Posts: 8
I'm experiencing the same issue at the moment too. Excellent plugin btw.

Floyd
__________________
Gigabyte GA-P35-DS3P Mainboard / Intel Core 2 Duo E6850 @ 3.00 GHz / 2.00GB RAM / Gigabyte Geforce 8600GTS with Silent Pipe / SBLive Audigy 2 ZS / LiteOn SHW-1635S DVD-RW / WD 300GB SATA HDD / Samsung 500GB SATA HDD / Seagate 1.0TB SATA HDD / Winfast Px DVR3200 H DVB-T Card / Dvico Dual Digital Twin DVB-T Card (black PCB) / 42" Plasma / Logitech Di Novo Edge Keyboard / Nvidia PureVideo Decoder / Cyberlink Audio Decoder / WinXP Pro SP2 / SageTV v6.x / Antec Server Case
Reply With Quote
  #333  
Old 12-03-2008, 02:07 PM
fiatmonkey fiatmonkey is offline
Sage User
 
Join Date: Apr 2008
Posts: 37
I wonder as the http error indicates a 403 which typically is "permissioned denied" message is IMDB somehow able to block or redirect the requests specifically from the sagetv application? In my experience (and its a been a while since I had to do this) setup sites to refuse a specific referring IP address that was screen scraping. If they are in fact blocking then it might be a specific header message coming from the sagetv application that they are looking for. I say this since I can literally take the URL the application says its using, paste into a browser and get what appears to be the correct page and results. This might be a be a reach on my part I do REALLY dig this feature BTW!!

-Fiatmonkey
Reply With Quote
  #334  
Old 12-03-2008, 03:16 PM
Zippster's Avatar
Zippster Zippster is offline
Sage Aficionado
 
Join Date: Jun 2008
Location: Buffalo NY
Posts: 314
Same here, looks like a java update hosed something.
Reply With Quote
  #335  
Old 12-03-2008, 04:11 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Niel,

I suspect the culprit is a missing User-Agent Header field. I just checked the batch metadata updater, and my "lite" imdb provider still works, but your provider fails with the 403 error.

Here is the code that I use when I create a url connection (in case you haven't changed it already )

Code:
		URLConnection conn = u.openConnection();
		if (conn instanceof HttpURLConnection) {
			   ((HttpURLConnection)conn).setInstanceFollowRedirects(followRedirects);
			conn.setRequestProperty("User-Agent", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1");
		}
Reply With Quote
  #336  
Old 12-03-2008, 09:54 PM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
Quote:
Originally Posted by stuckless View Post
Niel,

I suspect the culprit is a missing User-Agent Header field. I just checked the batch metadata updater, and my "lite" imdb provider still works, but your provider fails with the 403 error.
I'm getting the same exact error using your batch updater with your default provider. I even manually specified the provider "imdb" and got the same results. Here's the relevant section from the log.
Code:
1047 ERROR [main] org.jdna.media.metadata.impl.imdb.IMDBMetaDataProvider - Error Performing Search: title
java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.imdb.com/find?s=tt&q=title&x=0&y=0
Reply With Quote
  #337  
Old 12-03-2008, 10:25 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
well, that is interesting.... i just retested again, and i'm still not affected. Clearly this issue isn't an http header issue.
Reply With Quote
  #338  
Old 12-03-2008, 10:33 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
it is the http referer

Actaully... i'd like to change my mind I just remembered that I'm using a newer (unreleased) version of the metadata tools, which is why it is working for me. In the currently released metadata tools, I didn't actually set the referer, but I do now.

In a small test, I commented out my code that sets the http referer and sure enough, I get the 403 error when the referer is not set.
Reply With Quote
  #339  
Old 12-04-2008, 01:06 AM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
Lack of a useragent is definitely what's causing it. In addition to your testing, stuckless, I just set my squid proxy to add a fake useragent to all web requests leaving my house (i used "Opera/9.62 (X11; Linux i686; U; en) Presto/2.1.1") and now it works fine.

So, all the rest of you just need to set up a squid box and do transparent proxying as a workaround until stuckless and nielm can release updates.
Reply With Quote
  #340  
Old 12-04-2008, 08:12 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Unfortunately, it's going to get a while before I can relase an update to my tools, since the code is pretty much a mess right now, because of work that i'm doing to it, and a web based version of the tools. I think most people are eagerly awaiting niels update

Java, has a System property, http.agent, which looked promising. You can set it to a user agent value and it will use that as the default user agent string in cases where the user agent is not set. Of course, that sounds great, until you read the fine print, where it states that, "and oh, btw, because we know you really meant to append Java to the user agent, then don't worry, we'll do that for you.". Ok it doesn't really say that, in those words, but that's what it does.

So settinga user agent of "Mozilla/1.0" results in "Mozilla/1.0 Java/1.6.0". Because of this, setting this system property has no real effect, and imdb still fails the request. IMDB must be looking for "Java" in the user agent, and fails it, if it finds it. It's too bad that Java does append to the user agent since this would have been a quick fix for everyone, without a code change.
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 10:13 AM.


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