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
  #1741  
Old 08-27-2007, 01:21 PM
Khristopher Khristopher is offline
Sage Aficionado
 
Join Date: Aug 2007
Location: Edmonton, AB
Posts: 275
For anyone interested......Opera Mobile properly shows the menu bar from the Web Interface (and it works too).
Reply With Quote
  #1742  
Old 08-27-2007, 01:34 PM
robgfaulkner robgfaulkner is offline
Sage User
 
Join Date: Oct 2005
Location: Texas
Posts: 25
Send a message via MSN to robgfaulkner
Quote:
Originally Posted by bcjenkins View Post
so.. If you can use relative pathing for the web server why not put it in a dir on the webserver and use a pointer to it?

B
Because then EVERYONE would be running around with NON-STANDARD Web Servers, and next time Nielm did a fix, they would ALL be broken!

Which, is umm, as you know, not the way software is supposed to work.

-Rob
Reply With Quote
  #1743  
Old 08-27-2007, 04:04 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Sorry for sounding dense, but if the proposal is to replace a class file that someone edited because it has a pointer to a missing file; how is this bad?

The next time Nielm does an update and replaces the class file, the worst thing which will happen is you have a dtd file floating in the webserver root or subdir. It won't necessarily be used by anyone, right?

B
Reply With Quote
  #1744  
Old 08-27-2007, 04:17 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
I am confused as well. Why can it not just point to the .dtd that is already in the Sage folder? Is that file on the web constantly updated in someway?

What does the .dtd file do anyway?

Last edited by kricker; 08-27-2007 at 04:24 PM.
Reply With Quote
  #1745  
Old 08-28-2007, 04:34 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
http://www.xmlfiles.com/dtd/

B
Reply With Quote
  #1746  
Old 08-28-2007, 12:24 PM
robgfaulkner robgfaulkner is offline
Sage User
 
Join Date: Oct 2005
Location: Texas
Posts: 25
Send a message via MSN to robgfaulkner
Quote:
Originally Posted by bcjenkins View Post

Guys, when the XML file is generated, internally, it puts the DTD <!DOCTYPE tag into the XML. This tag, tells any and all parsers, how to validate the fields(tags) as it parses. If it is missing, those parsers generate an error. Try viewing one of your XML files inside Internet Explorer and see what happens. It won't display, it instead returns an error. Therefore, almost all parsers fail, because they cannot find the DTD to do the validation. Mainly, because all parsers use the standard DOM XML components.

Now, this XML is generated by the SageTV server, using the sageshowinfo DTD. It is produced inside a class, in the SageTV Webserver .jars. It points to a standard location for the DTD on www.sage-community.org. Which is down. Therefore, all XML files generated won't parse and those importers written to work with sageTV are broken. Everyone installs sageTV into a different place, therefore, its not just a simple put the sageshowinfo DTD into a certain location, because the parser has to know the EXACT location. Therefore, the class that generates the XML file, needs to know this location, and put it in the <!DOCTYPE tag line, and this location needs to be accessible for the parser, and for any other tools that expect to parse the XML.

Just having a bunch of people manually decompile their JARs and changing code and doing a recompile is not the solution. And, most people will NOT have the training to understand how to do this.

-Rob
Reply With Quote
  #1747  
Old 08-28-2007, 02:25 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
I still don't see an answer to my question in your answer.

If you use a relative path, the webserver jar file has to assume a current working directory to interpret it. If it is a relative web url then the end user is already running the web server component and can it can be relative to webroot. Doesn't seem too complex to me.

Or is the issue when some other application wants to consume the output of the xml data and needs the interpreter? In that case you would need a fully qualified URL path, but why not make that a property and be done with it?

B
Reply With Quote
  #1748  
Old 08-28-2007, 03:26 PM
sojourner753 sojourner753 is offline
Sage User
 
Join Date: Oct 2005
Location: Rockville, MD
Posts: 70
Quote:
Originally Posted by Khristopher View Post
For anyone interested......Opera Mobile properly shows the menu bar from the Web Interface (and it works too).
Have you tried Netfront?
__________________
Platform: Windows XP Pro; Java: 6.x; SageTV: 6.1.x; Decoders: Nvidia PureVideo Gold;
Machine:Dell Dimension 9200;Processor: Intel® Core™ 2 Duo Processor E6320 (4MB L2 cache,1.86GHz,1066FSB); RAM: 2GB Dual Channel DDR2 SDRAM at 667MHz- 2DIMMs; Graphics Card: 128MB nVidia GeForce 8300 GS; Tuner: Hauppauge WinTV-PVR 500 MCE
Storage: OS/Apps: 160GB (7200RPM) w/DataBurst Cache ; Recordings: Seagate 300GB 7200 RPM SATA; Signal: Comcast Digital Cable with HD Converter;
Reply With Quote
  #1749  
Old 08-29-2007, 01:34 PM
Jason's Avatar
Jason Jason is offline
Sage Expert
 
Join Date: Nov 2003
Location: Texas
Posts: 598
Quote:
Originally Posted by robgfaulkner View Post
Guys, when the XML file is generated, internally, it puts the DTD <!DOCTYPE tag into the XML. This tag, tells any and all parsers, how to validate the fields(tags) as it parses. If it is missing, those parsers generate an error. Try viewing one of your XML files inside Internet Explorer and see what happens. It won't display, it instead returns an error. Therefore, almost all parsers fail, because they cannot find the DTD to do the validation. Mainly, because all parsers use the standard DOM XML components.

Now, this XML is generated by the SageTV server, using the sageshowinfo DTD. It is produced inside a class, in the SageTV Webserver .jars. It points to a standard location for the DTD on www.sage-community.org. Which is down. Therefore, all XML files generated won't parse and those importers written to work with sageTV are broken. Everyone installs sageTV into a different place, therefore, its not just a simple put the sageshowinfo DTD into a certain location, because the parser has to know the EXACT location. Therefore, the class that generates the XML file, needs to know this location, and put it in the <!DOCTYPE tag line, and this location needs to be accessible for the parser, and for any other tools that expect to parse the XML.

Just having a bunch of people manually decompile their JARs and changing code and doing a recompile is not the solution. And, most people will NOT have the training to understand how to do this.

-Rob
Can you change the .jar file to the following location...?

http://tools.assembla.com/sageplugin...owinfo_1_2.dtd

or
http://sageplugins.cvs.sourceforge.n...geshowinfo.dtd

The WIKI is hosted on another server for right now/ever...(?) Nielm?

-Jason
__________________
True standalone tuner functionality with the --> HAVA Channel Changer<--

Last edited by Jason; 08-29-2007 at 01:46 PM.
Reply With Quote
  #1750  
Old 08-29-2007, 02:28 PM
AngelofDeth AngelofDeth is offline
Sage Aficionado
 
Join Date: Jul 2005
Posts: 359
The latest webserver requires java 1.5/6? That is unfortunate, as java 1.6 causes my MVP to run like mud. (at least it did the last time I tried it)
Reply With Quote
  #1751  
Old 09-01-2007, 02:16 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
bugs in 2.18

Hi nielm,

Running linux

1) conflictIcon.gif should be renamed to conflicticon.gif to match the source
2) When trying to use conflict resolution there is an exception thrown.
Code:
Exception while processing servlet:
java.lang.NullPointerException
java.lang.NullPointerException
	at net.sf.sageplugins.sageutils.SageApi.IntApi(SageApi.java:129)
	at net.sf.sageplugins.webserver.ConflictsServlet.doServletGet(ConflictsServlet.java:76)
	at net.sf.sageplugins.webserver.SageServlet.doGet(SageServlet.java:82)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at Acme.Serve.ServeConnection.runServlet(Serve.java:1501)
	at Acme.Serve.ServeConnection.parseRequest(Serve.java:1476)
	at Acme.Serve.ServeConnection.run(Serve.java:1363)
	at java.lang.Thread.run(Unknown Source)
In this particular case the reason for the conflict is because the channel is no longer in the lineup.

B
Reply With Quote
  #1752  
Old 09-01-2007, 11:08 PM
mclement60 mclement60 is offline
Sage User
 
Join Date: Nov 2006
Posts: 35
Smile Sage ebserver Audio

When I click on stream to wvx it opens windows media player and play video but no audio.

Tried VLC but stream is to choppy.

Thanks
Reply With Quote
  #1753  
Old 09-02-2007, 12:12 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by robgfaulkner View Post
This tag, tells any and all parsers, how to validate the fields(tags) as it parses. If it is missing, those parsers generate an error.
What should actually happen is that the program running the parser looks at the PUBLIC doctype ("-//NIELM//DTD SAGESHOWINFO XML 1.2//EN"), understands what this means, and points the parser to a local copy of the DTD that it knows about (in XML terminology, this is a custom EntityResolver). This is what my webserver does when importing the XML. The URL to the DTD is a fallback mode...

Anyway, I have contacted the owner of www.sage-community.org, told him that his DNS is screwed, and I will release a newer version of the webserver and XML plugins with the DTD hosted on Sourceforge...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #1754  
Old 09-02-2007, 12:15 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by AngelofDeth View Post
The latest webserver requires java 1.5/6?
No, it should run on Java 1.4 (odd that you get a slowdown: 1.6 gives most people performance benefits over 1.4)
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #1755  
Old 09-02-2007, 12:19 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Quote:
Originally Posted by nielm View Post
What should actually happen is that the program running the parser looks at the PUBLIC doctype ("-//NIELM//DTD SAGESHOWINFO XML 1.2//EN"), understands what this means, and points the parser to a local copy of the DTD that it knows about (in XML terminology, this is a custom EntityResolver). This is what my webserver does when importing the XML. The URL to the DTD is a fallback mode...

Anyway, I have contacted the owner of www.sage-community.org, told him that his DNS is screwed, and I will release a newer version of the webserver and XML plugins with the DTD hosted on Sourceforge...
So since it was having an issue, is it a case sensitivity one?

B
Reply With Quote
  #1756  
Old 09-02-2007, 12:21 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
Quote:
Originally Posted by nielm View Post
What should actually happen is that the program running the parser looks at the PUBLIC doctype ("-//NIELM//DTD SAGESHOWINFO XML 1.2//EN"), understands what this means, and points the parser to a local copy of the DTD that it knows about (in XML terminology, this is a custom EntityResolver). This is what my webserver does when importing the XML. The URL to the DTD is a fallback mode...

Anyway, I have contacted the owner of www.sage-community.org, told him that his DNS is screwed, and I will release a newer version of the webserver and XML plugins with the DTD hosted on Sourceforge...
What if the DTD on Sourceforge goes missing? You say the URL to the DTD is a fallback.....does that mean it should be using the local .DTD in the root Sage folder, and only use the web version if the local is missing?
Reply With Quote
  #1757  
Old 09-02-2007, 12:45 PM
AngelofDeth AngelofDeth is offline
Sage Aficionado
 
Join Date: Jul 2005
Posts: 359
Quote:
Originally Posted by nielm View Post
No, it should run on Java 1.4 (odd that you get a slowdown: 1.6 gives most people performance benefits over 1.4)
Yes, it is odd. Maybe has to do with the fact I run win2k3, but I know others run 1.6 fine with Sage on it... When I install the webserver, the server runs but it won't accept a login. I've installed the webserver before, never had a problem getting it to work.
Reply With Quote
  #1758  
Old 09-02-2007, 03:18 PM
alon24 alon24 is offline
Sage Aficionado
 
Join Date: Jun 2004
Posts: 351
Used xnk import for tv shows, and timeline is messed up

Hi,
I used the export favorites, and tv shows to xml using the webserver, then I delted the wiz.bin and imported all the favorites and shows back.

The favorites are back great, and the shows seem to be there, and running, except that the timelline is corrupt.

It starts with a red bar (from 37 mins or 50 mins) and then a green bar with the correct amout of time.

But it will not save the position if I stop it, and it does show the red bar at the begining so something is worng.

Any idea how to fix all of my recordings?

Thanks
__________________
Server
SageTv 6.3.5, Core2Duo 6300 ,2Gigs ,Saphire x1650, PVR250, 2*320GB + 160GB, java 1.6.1
Client
SageTV Client 6.3.5 , AMD 3000, 1024Mb, Saphire x1600Pro256HDMI, java 1.6.1

Using Nielm's Web server 2.22
Reply With Quote
  #1759  
Old 09-03-2007, 05:11 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by kricker View Post
What if the DTD on Sourceforge goes missing? You say the URL to the DTD is a fallback.....does that mean it should be using the local .DTD in the root Sage folder, and only use the web version if the local is missing?
yes... kind of.

As far as I understand it (and I am far from an XML expert), any application that understands a certain type of XML should include that DTD internally to the app, so that it does not need to access any externally hosted DTDs when parsing...

When the XML parser is started and its sees it needs a DTD, the app can point the parser to it's local copy of the DTD via an entity resolver so that the parser does not need to read the DTD from the URL.

Eg: Every XHTML web page has a DTD ID and URL pointing to a W3 server, but every web browser does not need to hit the W3 server each time it needs to parse a web page.
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #1760  
Old 09-03-2007, 10:30 AM
sainswor99's Avatar
sainswor99 sainswor99 is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 703
Quote:
Originally Posted by nielm View Post
yes... kind of.

As far as I understand it (and I am far from an XML expert), any application that understands a certain type of XML should include that DTD internally to the app, so that it does not need to access any externally hosted DTDs when parsing...

When the XML parser is started and its sees it needs a DTD, the app can point the parser to it's local copy of the DTD via an entity resolver so that the parser does not need to read the DTD from the URL.

Eg: Every XHTML web page has a DTD ID and URL pointing to a W3 server, but every web browser does not need to hit the W3 server each time it needs to parse a web page.
I'm also not an XML expert, but I do know you can embed the DTD inside the XML document itself, which may solve the whole problem altogether. http://www.w3schools.com/dtd/dtd_intro.asp
Reply With Quote
Reply

Tags
web


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
Plugin: Mobile Web Interface 1.2 jreichen SageTV Customizations 281 06-17-2011 02:20 PM
Can't get Web-based User Interface to install SSBrian SageTV Customizations 3 11-04-2008 08:12 PM
Web User interface link for the metadata file. zzmystique SageTV Customizations 0 06-21-2008 02:26 AM
Idea to enhance the Web User Interface: Messaging jbarr SageTV Customizations 3 05-14-2007 03:59 PM
Linkplayer, Linktheater with SageTV Web User Interface fyodor SageTV Customizations 0 10-08-2006 06:03 PM


All times are GMT -6. The time now is 06:33 AM.


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