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
  #341  
Old 12-04-2008, 08:40 AM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
Quote:
Originally Posted by stuckless View Post
Unfortunately, it's going to get a while before I can relase an update to my tools
So where can we manually edit the code in your package that we already have to include this lovely part?
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
  #342  
Old 12-04-2008, 10:18 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
So where can we manually edit the code in your package that we already have to include this lovely part?
The code, that is checked into the repository contains some of the updates that I've done. Unfortunately, it's not tested, and I'm not confident it fully works. The only real fix is for me to push out a release. I'll try to push something out this weekend. Keep in mind that I am talking about the Batch Metadata Tools and not neil's code. I have no idea the state of his project... it may actually be a quick fix for him (or someone else).
Reply With Quote
  #343  
Old 12-04-2008, 11:26 AM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
I'm talking about the batch metadata tools too. Neil's code is a nice novelty from time to time, but yours I use on every movie that makes it's way into sage. I was just hoping that part of your package I already had was interpreted each time by the jre rather than compiled and could be tweaked by hand by me to add the useragent to the http request. I'm fine for now using my transparent proxy solution, but it's a bit of a kludge.
Reply With Quote
  #344  
Old 12-04-2008, 01:59 PM
flashbacck flashbacck is offline
Sage Aficionado
 
Join Date: May 2004
Posts: 326
As Stuckless suggested it's the User-Agent property that was giving problems. I'm not at home, so someone give this version a whirl.
Attached Files
File Type: zip nielm_sageimdb.zip (42.6 KB, 900 views)
__________________
C2D e6320
P4M800Pro, 1gb DDR, 1100GB HDs
Hauppauge HVR-1600, HDHomerun, Geforce 6200
Reply With Quote
  #345  
Old 12-04-2008, 02:19 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by flashbacck View Post
As Stuckless suggested it's the User-Agent property that was giving problems. I'm not at home, so someone give this version a whirl.


That works thank you!!!!
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #346  
Old 12-04-2008, 03:01 PM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
Worked for me too, thanks...
Reply With Quote
  #347  
Old 12-04-2008, 11:11 PM
floyd_2 floyd_2 is offline
Sage User
 
Join Date: Nov 2008
Posts: 8
Unfortunately I'm stuck at work. Thanks for your effort flashbacck - can't wait to give it a whirl when I get home.

Update: works like a charm thanks flashbacck. Well done!

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

Last edited by floyd_2; 12-05-2008 at 06:04 AM.
Reply With Quote
  #348  
Old 12-05-2008, 03:29 PM
fiatmonkey fiatmonkey is offline
Sage User
 
Join Date: Apr 2008
Posts: 37
Awesome. I wish I had checked the forum before I starting hacking the code but I am glad I was going down the right path.

Thanks flashbacck!
Reply With Quote
  #349  
Old 12-05-2008, 04:45 PM
sagetvkid sagetvkid is offline
Sage User
 
Join Date: May 2005
Posts: 35
Thanx flashbacck...much appreciated
Reply With Quote
  #350  
Old 12-08-2008, 02:51 PM
abnatc abnatc is offline
Sage User
 
Join Date: Nov 2008
Location: Route 66, OK
Posts: 7
This is probably a ridiculous question, but how do I make this work? I tried replacing the old nielm_sageimdb.jar file with the new one in the jar folder on my server, but I still get the same results when I search from within Sagemc. Is there an additional step that I'm missing? I did stop the sage service before replacing the file and then restarted it after.
Reply With Quote
  #351  
Old 12-08-2008, 05:47 PM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
It looks like you just need to restart your sage client/front end, not the service. I just had the same issue myself and closing SageTV but not SageTVService solved it. This was true for both my main server and my client in the bedroom.
Reply With Quote
  #352  
Old 12-09-2008, 09:02 AM
abnatc abnatc is offline
Sage User
 
Join Date: Nov 2008
Location: Route 66, OK
Posts: 7
I think I'm still missing something. I have SageTV running as a service on an HP Mediasmart server. The front end is a HD-100. I've tried stopping and starting the SageTV service and power cycling the HD-100. I still get the same results. I don't actually have the SageTV application running on the server. I am using the latest beta of SageTV for WHS.
Reply With Quote
  #353  
Old 12-10-2008, 02:26 AM
Kypp Kypp is offline
Sage User
 
Join Date: Dec 2008
Posts: 29
I am also unable to get this to work. I still get the 403 error when trying to search... even after updating to the .jar file from Flashback and restarting Sage.

I'd love to get this to work as I am just starting to build my archived DVD collection on Sage and when combined with the RW Metadata plugin this would help with getting cover art and movie info... beats the hell out of manually downloading off of Amazon
Reply With Quote
  #354  
Old 12-10-2008, 06:16 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I would redownload the .jar that flashback posted. Then shutdown sage. Delete the jar from the JARs directory, and then copy over the new jar file.

If you are still getting the 403 error, then maybe the original jar didn't get updated??
Reply With Quote
  #355  
Old 12-10-2008, 08:31 AM
abnatc abnatc is offline
Sage User
 
Join Date: Nov 2008
Location: Route 66, OK
Posts: 7
I finally got this working. As I stated earlier, I am new to SageTV and WHS. When I initially put SageTV on my Mediasmart server I had just used the console to put SageTV in the add-ons folder and started the service. I was not aware that a folder for SageTV is created in the programs folder on the System drive. I was just replacing the .jar in the SageMC folder. After finding the folder on the System drive, I replaced the .jar in the Jars folder associated with that one and it started working. I hope this helps.
Reply With Quote
  #356  
Old 12-10-2008, 07:09 PM
gatorwes gatorwes is offline
Sage User
 
Join Date: Sep 2007
Posts: 56
Unfortunately, another "it's not working" experience: 403 error code returned from server.

Running Sage (6.4.8) and SageMC (6.3.7) in service mode on a WHS server, viewing with either placeshifter clients (6.3.10) or HD100 extenders.

Any help would be greatly appreciated. Glad to help troubleshoot if any more knowledgeable users would direct provide direction.

Edit: the file located in c:\program files\sagetv\sagetv\jars was replaced. Verified that the new file is dated 12/4.

Last edited by gatorwes; 12-10-2008 at 07:19 PM.
Reply With Quote
  #357  
Old 12-10-2008, 09:02 PM
tx-nash tx-nash is offline
New Member
 
Join Date: Dec 2008
Posts: 2
Problems with IDMB Search and SageMC

Good evening,

I am apparently one of the view that is still having problems with importing data from IMDB. I have downloaded the new jar file and verified size and date stamp. I even have run a "diff" of the previous jar file. I have the new one, but it is still erroring out. I have included 3 screen shots.
1 of the error
1 of the version info
1 of the properties of the jar file

Details:

Server is running on Windows XP SP3

SageTV version 6.5.3.194
Java version 1.6.0_11
SageMC STV Version 6.3.8
SageMC Jar Version 6.3.8
STV File: SageMC_169.xml


java -version

java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

Thanks in advance for your help.
Attached Images
File Type: jpg Picture 1.jpg (114.4 KB, 237 views)
File Type: jpg version.jpg (123.0 KB, 231 views)
File Type: jpg jar_file.jpg (57.7 KB, 253 views)
Reply With Quote
  #358  
Old 12-11-2008, 03:20 AM
flashbacck flashbacck is offline
Sage Aficionado
 
Join Date: May 2004
Posts: 326
If you're still geting the 403 error then it seems that Sage is still using the old jar... Make sure you delete or move the old nielm_sageimdb.jar file out of the sagetv/jars directory. Simply renaming it won't work. Then you have to close and restart Sage.
__________________
C2D e6320
P4M800Pro, 1gb DDR, 1100GB HDs
Hauppauge HVR-1600, HDHomerun, Geforce 6200
Reply With Quote
  #359  
Old 12-11-2008, 05:42 AM
gatorwes gatorwes is offline
Sage User
 
Join Date: Sep 2007
Posts: 56
Quote:
Originally Posted by flashbacck View Post
If you're still geting the 403 error then it seems that Sage is still using the old jar... Make sure you delete or move the old nielm_sageimdb.jar file out of the sagetv/jars directory. Simply renaming it won't work. Then you have to close and restart Sage.
This was my problem. I had renamed the old version to keep it "just in case". Moving the renamed old version out of the jars folder and then restarting sage did the trick.

Thanks!
Reply With Quote
  #360  
Old 12-11-2008, 09:37 AM
tx-nash tx-nash is offline
New Member
 
Join Date: Dec 2008
Posts: 2
IMDB Problem solved

Flashbacck,


Thanks for the info....worked great. Guess that is what I get for being too cautious.
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.