|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
RFC: XML show information format
A lot of STVs are now outputting XML show info, and I have defined a standard XML show information format that would contain all the information in Sage's DB.
This format is documented on the Sage Wiki, and the XML data can be generated by either the v2.7 (or higher) version of the sage webserver, or by the Sage Recordings XML file info generator. The Java library used to generate the XML show information has public APIs that can be used by other STVs to generate XML files for use for other purposes. The intention is also to create a Sage XML reader class so that the webserver can be used to both export + import favorite + show information and make DB backups...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki Last edited by nielm; 03-25-2006 at 08:10 AM. |
#2
|
|||
|
|||
Most people say that by setting the charset to UTF-8 will make it universal, however I've heard that may not be true and the charset may need to be configurable. Lets hope someone who knows more on that topic jumps in...
Anyways, I think this is a great idea. |
#3
|
||||
|
||||
A couple of people have asked for the Episode Number to be in the XML... I cannot add this as a separate item because this information is not explicitly available from Sage's DB...
However, in Zap2It's data, the Epsiode ID seems to be the last 4 digits of the EPGID (provided that it starts with EP and has 10 or more digits)...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#4
|
||||
|
||||
Quote:
Quote:
Quote:
More problems will be for your external "STV-independant JAVA plugin", it has to read the xml and wiz.bin and update only the changed fields without touching those fields which aren't available in wiz.bin.
__________________
Oliver Kötter ------------ Check this thread for importing German TV Data into SageTV Using SageTV 7.1.9, Java 1.6.0_24 Win7 Home Premium on an Asus M4N78-AM Mainboard, AMD Athlon II X2 215, 4 GB RAM, 500 GB HDD, 2xTechnoTrend S-2400 as Network Encoder (LM DVB Smart Recorder), ATI Radeon HD 3450 with analog TV-Out on good old CRT TV (100Hz) My avatar shows the world's best composer!!! |
#5
|
||||
|
||||
One note to the <description> tag although this might be important for other tags as well.
Nielm, do you remember the line break problem? How to cope with these?
__________________
Oliver Kötter ------------ Check this thread for importing German TV Data into SageTV Using SageTV 7.1.9, Java 1.6.0_24 Win7 Home Premium on an Asus M4N78-AM Mainboard, AMD Athlon II X2 215, 4 GB RAM, 500 GB HDD, 2xTechnoTrend S-2400 as Network Encoder (LM DVB Smart Recorder), ATI Radeon HD 3450 with analog TV-Out on good old CRT TV (100Hz) My avatar shows the world's best composer!!! |
#6
|
|||
|
|||
Could chapter information be optionally encoded here?
I think you would want to call them chapters or something because they would not necessarily be comercials, but could just mark the start of a movie or where it ends - you know to lop off the first 5 and last 8 minutes of a HBO movie. I could also see a STV developed that would let you set chapter markers. So you could jump to a next marker. Programs that are designed to burn DVDs or clip out show secions could use this information. <chapterList> <chapter chapterDescription="Monologue" startFrame=0 endFrame=625 /> <chapter chapterDescription="Commercials" startFrame=626 endFrame=3996 /> <chapter chapterDescription="First guest" startFrame=3997 endFrame=10333 /> </end chaperList> |
#7
|
|||
|
|||
I think this is a *great* idea niel. Im afraid I dont have specific comments about the XML because I'm only an amateur programmer but I commend you RFC'ing -- this kind of feature increases its functionality greatly the more standard it becomes. I look forward to the day that I can fully record and play in mpeg-4 ... no matter how much disk I get, its not long after that I am hunting for more disk space
anyways kudos on the idea and on the openness of asking for suggestions Cory |
#8
|
||||
|
||||
thanks, if only I had the time to implement it
eobiont: cool idea... Not sure how I would make it work for Sage Recordings though: it would mean 2 programs needing to write to the same file (Sage for updating watched flags, etc; SA or whatever to update the chapter section...). Maybe 2 separate files is still best for the moment...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#9
|
||||
|
||||
Quote:
Quote:
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
__________________
Death to commercials!!! Latest ShowAnalyzer Beta version: 0.9.7
|
#10
|
||||
|
||||
I too definately like the idea of a universal xml format. One thing I've noticed with the latest beta of v3 is that the hidden features allow you to "export xml" but you have to do it manually (i.e. not automatically generated with every new recording). My point is that if a truly universal format is going to be created, Sage almost needs to be involved as well, or better yet, they'll do it for us
-AJ |
#11
|
||||
|
||||
nielm,
I noticed this thread, and thought I would post what I had worked up for your web server. I am using TVedia as my front end, as I am using an Xcard and the response time of the plugin was too slow. TVedia does a great job with the interface, but doesn't hold a candle to Sage's EPG and PVR functionality. I have created two java classes that I added to your webserver. One returns all of the recordings that currently exist, the other returns general status of Sage, including disk space and currently recording. They are a little rough, but I am working on "porting" as much of the Sage environment through XML to TVedia. Eventually I would like to be able to control favorites, etc. from TVedia, using the XML as the data driver, and the webserver handling the requests. Here are the two classes I wrote, for what it is worth. Thanks, Mike
__________________
Mike : Technical Architect / Software Engineer HTPC : Intel® Core 2 Q6600 2.4GHz Quad Core Processor, 3GB RAM, 1TB DASD, Vista Home Prem, HdHomerun (2x Comcast QAM) Main TV: Samsung 56" HDTV - STX-HD100 720p - HDMI - Sony DG910 |
#12
|
||||
|
||||
FWIW, this was just posted on AVS:
http://mcgrathinfosolution.com/mis_en.htm |
#13
|
|||
|
|||
Any chance this could be ported/used in a stv import so that XML files are written for all shows in your recording directories? I think I had an STV that did this for me back with Sage2 or 3, but not any more from what I can tell.
The reason I'm asking is, that if we can agree to keep using this DTD, then I will use this format in the coming versions of my CreateDVD program. That way, anyone can load the import into whatever STV they're running and I'd have a way to work with any STV. |
#14
|
|||
|
|||
Malore has an option in the Unofficial Secrets - for creating an XML for a show.
That option as it is written now, does not support any other lang other than English. I have a fix for that, for any 1 who is willing to implement it (2 lines). please contact me, as I do think this should change in the main Sagetv, since it comes basicly from the company in the original STV. Again, using the fix (2 lines) will fix the creation of XML files for show from the Unofficial Secrets used by the default STV.
__________________
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 |
#15
|
||||
|
||||
My idea was to have an STV-independant Java plugin that would create XML files for all sage recordings on start up, and every so often check to see if any new recordings had been created and write those too...
But, I have been too busy to do anything
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#16
|
||||
|
||||
If you're not already going there, I'd suggest that for at least the show information (non-Sage specific info), that you use the XMLTV format for consistency. That would make porting it to anything else much easier.
|
#17
|
|||
|
|||
Quote:
|
#18
|
|||
|
|||
Quote:
|
#19
|
|||
|
|||
Quote:
__________________
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 |
#20
|
|||
|
|||
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|