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
  #21  
Old 02-03-2006, 08:43 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by KJake
I like your approach, it is exactly what I'm looking for. What do you need help with, or is it just time?
Just time...
I also want to plug it into the webserver, so that all webserver pages (search results /detailed info / Rec sched etc) can generate XML output if required.
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #22  
Old 02-19-2006, 09:42 PM
Nightrader_ Nightrader_ is offline
Sage User
 
Join Date: Dec 2005
Posts: 33
Reading and writing the xml data

Quote:
Originally Posted by Jere_Jones
Another problem you might have is if you edited the information in sage (via the webserver or some other future means) then the xml will need to be rewritten. Any process doing this will need to basically load the xml and only change what it knows, leaving the rest. Unfortunately, it seems that most XML libraries are centered more around writting or reading, not updating.

Just my $0.02.

Jere
Just a quick idea here.

You just need a Read/Write Request Broker. Request Broker would test_for/start a background thread with access to the file and exposed read and write methods, Read and Write request would then be pushed through this thread no matter who called, all would be sync'ed.

Nightrader
Reply With Quote
  #23  
Old 02-20-2006, 08:44 PM
Coolwave Coolwave is offline
Sage User
 
Join Date: Nov 2003
Location: North Dakota
Posts: 54
This is definitately something that needs to be done. I would love it if there was a way to read xml from the webserver plugin. I'm currently looking into developing a script for XBMC that hooks into the your webserver to retreive the information I need to display recordings and play them. This is step one of course, followed by setting up recordings through the epg and searching. This is something I just started on and would love to see the webserver return an xml file by adding a query string to the url like:
http://localhost:8080/sage/DetailedInfo?AiringId=45420&xml=1

I will say right now that I'm not experienced with Python at all, but I know we all would love a SageTV plugin for XBMC. nielm's webserver is so kickass that I really think I can link XBMC to SageTV with a lot of help from the webserver. Using xml rather than scraping the web pages would of course be awesome.

So who doesn't want a standard xml format for Sage!?!? Seems like it would help everyone! So how the heck do we decide on this standard?

Coolwave

Last edited by Coolwave; 02-20-2006 at 08:46 PM.
Reply With Quote
  #24  
Old 03-24-2006, 05:20 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
One year later ... and I am close to a release of the webserver with XML output, and also of a java-only plugin that automatically creates XML files for each recording.

I have updated the XML definition to include information about favorites, and file type, and a few more flags. updated DTD. see http://www.sage-community.org/index....ki/SageXmlInfo
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki

Last edited by nielm; 03-25-2006 at 08:12 AM.
Reply With Quote
  #25  
Old 03-24-2006, 04:56 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
This is now implemented in Webserver v2.7 and in the Sage Recordings XML generator...

Apologies to Coolwave and Jere_Jones for forcing them to parse my crappy HTML for so long, and I hope this makes your lives easier, guys!
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #26  
Old 03-24-2006, 06:00 PM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993


Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #27  
Old 03-25-2006, 08:11 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
For anyone who wants to include XML writing in their STV, I have published some javadocs for the API functions.
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
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


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


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