SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV EPG Service
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV EPG Service Discussion related to the SageTV EPG Service used within SageTV. Questions about service area coverage, channel lineups, EPG listings, XMLTV, or anything else related to the service or programming guide data for SageTV should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-17-2005, 04:26 PM
mobby mobby is offline
Sage User
 
Join Date: Jan 2005
Location: South Wales, UK
Posts: 26
XMLTV Plugin not working with V4

Hi,
I was using 2.2 for ages with the XML TV plugin as described by an old thread (the thread described how to get the XMLTV plugin to work with Sage and also how to configure the Radio Times XML Grabber to write the epgdata to sage). I have recently upgraded to Version 4 of sage. I thought XMLTV was working until i started to notice that my favourites scheduling was getting smaller. Yesterday I could see that i was getting to the end of the epgdata and although I had tried updating the schedule with the RT Grabber the epg is not updating. The epgdata.xml seems to have the full 14 days worth but sage is not updating. I have tried restarting, diabling/enabling a channel to get sage to update whilst it is running and so far still no luck.

Does anyone have any ideas how to sort this?

Also has anyone else got the same setup as me? i.e. Sage 4, RT Grabber (2.20) and XMLTV Plugin? Are you having problems with the RT Grabber not being able to write to epgdata.xml whilst sage is running? If you stop sage, then update it then the file can be written (I am guessing this is due to sage locking the file or the RT Grabber is trying to do something which is clashing with sage even though sage is not locking the file). Sage 2.2 did not cause this error.

I am actually a java developer by profession so I have resorted to looking at the xmltv plugin to either make it more tollerant of errors and/or see if I can see any general problems.

Thanks for reading,
mobby
Reply With Quote
  #2  
Old 11-18-2005, 01:18 AM
Lucas Lucas is offline
Sage Icon
 
Join Date: Aug 2004
Location: Greece
Posts: 1,156
I run the same setup and everything is fine.

The only difference is I run nielms multi-xml variation of the plugin.
My xlm files are named 1.xml, 2.xml etc.
__________________
Windows 10 64bit - Server: C2D, 6Gb RAM, 1xSamsung 840 Pro 128Gb, Seagate Archive HD 8TB - 2 x WD Green 1TB HDs for Recordings, PVR-USB2,Cinergy 2400i DVB-T, 2xTT DVB-S2 tuners, FireDTV S2
3 x HD300s
Reply With Quote
  #3  
Old 11-18-2005, 03:48 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by mobby
Does anyone have any ideas how to sort this?
Have you updated Java recently -- check that xerces.jar is in the JRE/lib/ext directory, (Or better still, put it in SAGETV/Jars)

Try running the plugin tester (see the XMLTV page on the wiki) to check to see if the data is good...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #4  
Old 11-18-2005, 02:46 PM
mobby mobby is offline
Sage User
 
Join Date: Jan 2005
Location: South Wales, UK
Posts: 26
It seems that Version 2.20 of RT Grabber is creating invalid xml. It is not filling in the enconding so it writes

<?... encoding=""?>

...and then becuase the encoding is defaulting to unicode (i think) the file encoding is not unicode so some characters are causing the parsing to fail. I have gone back to 2.19 of RT Grabber and everything is working fine. Not sure what is happening there i'm pretty sure 2.20 used to work so I am a little confused. I have also moved xerces into the JARs directory so i know sage can definately see it (as i have the JDK installed so im not sure which java Sage is using, im guessing which ever the pc is set up to use but i thought to be safe i'd just put the jar in the JARs dir).

Thanks for your help Niel and Lucas.
Reply With Quote
  #5  
Old 11-19-2005, 03:19 AM
mj_wood mj_wood is offline
Sage User
 
Join Date: Nov 2005
Posts: 6
I'm having the same problem with the default xmltv grabbers (I use both the _rt and _be grabbers and the problem seems to happen with both).
As far I can see, the xml is valid.
I presume my sagetv and xerces setup is ok as it imported the data from the xml file the first time I ran it. The problem, like mobby's is that the epg data doesn't seem to be refreshing from a new epgdata.xml file
Reply With Quote
  #6  
Old 11-19-2005, 03:26 AM
mj_wood mj_wood is offline
Sage User
 
Join Date: Nov 2005
Posts: 6
I've run the plugin tester and it produced the result "true"
Reply With Quote
  #7  
Old 11-19-2005, 06:14 AM
mobby mobby is offline
Sage User
 
Join Date: Jan 2005
Location: South Wales, UK
Posts: 26
You can also check the xml using IE, if you open it with IE it will parse the file and try to create a dynamic tree from it (so you can open/collapse parent tags). IE may say it has blocked access to the content and you wont be able to collapse any branches, just click on the yellow bar and allow the content, you will then be able to open/collapse the branches. It might take a while to parse but if it can do the whole file then it is ok. Check to the bottom of the page, IE will complain about any incorrectly encoded characters so make sure you can see the end of the file in IE. If there is an encoding error then this will cause the plugin to stop (this is where i was thinking of having a look at the plugin to make it a bit more resiliant to these types of failures but not looked that hard at it yet). Also make sure the first line in the xml file looks like:

<?xml version="1.0" encoding="ISO-8859-1"?> - if your filesize for the epgdata.xml is around 24-25mb for 14days (taking my ntl epg as a guide) then it is most likely in this encoding. If your file is more like 40mb(ish) then thats more likely to be UTF-8 or Unicode hence the first line will have "UTF-8" as the encoding type or no entry at all to default to Unicode (I believe not 100% sure about that last bit).

rather than:

<?xml version="1.0" encoding=""?> - this will be the first error in the file and it was this that was causing me problems. Dont know why but the RT Grabber was writing this line instead of the one above.

I have had a problem with the RT grabber not being able to write the epgdata.xml file whilst Sage(4) is running, so make sure that the new file is actually being written to the epgdata.xml file in your sage installation. TBH it sounds like the file is ok, it sounds more like a problem that either the file is not be updated or sage is not seeing the update. One way to make sure the file is updated is to just stop sage, run the grabber, check the filedate once it is done, start sage, leave it a bit and then check the guide. Often if sage has a lot of updating to do you will get a lot of harddrive access when sage is running. So leave it until this goes quiet and then check your guide. If it is a problem with sage not seeing the updates then i am lost but i am sure nielm, opus, etc will have something for you to try

As for xerces put it in the JARs directory of sage, if you have multiple Java installations, or the JDK installed then Sage may be using a different JVM to the one you have put the xerces jar file in. If you put it in the JARs dir then you are guaranteed that Sage will see it regardless of the java version. This is my guess as to what sage does, i think that sage reads the file into its running database but then rewrites the data into its own format somewhere else (wiz.bin i think). That means that the plugin only really has to work the first time to put all the data into sage but then it could fail after that and the guide will still keep appearing. Its only once sage re-runs the plugin that it updates its internal data, so if that plugin fails your EPG will not suddenly dissappear it just wont have the update. So for me it has taken 14days to realise that the epg was not being updated, it wasnt a case of one day epg, next day nothing, i just noticed that i was running out of epg data.

HTH

p.s. sorry for the long post or if have a I just rattled off everything you already knew or have tried

Last edited by mobby; 11-19-2005 at 06:24 AM.
Reply With Quote
  #8  
Old 11-19-2005, 01:09 PM
Lucas Lucas is offline
Sage Icon
 
Join Date: Aug 2004
Location: Greece
Posts: 1,156
I also managed to recreate the problem.

Once I got over the encoding def missing, I run xmltv tv_sort on the file which found several dozens of unicode characters in places were there were accented characters. I replaced one by one each of them and then tv_sort completed. The resulting file was read by the plugin.

Looks like going back to 2.19 as well.

I will let birty know.
__________________
Windows 10 64bit - Server: C2D, 6Gb RAM, 1xSamsung 840 Pro 128Gb, Seagate Archive HD 8TB - 2 x WD Green 1TB HDs for Recordings, PVR-USB2,Cinergy 2400i DVB-T, 2xTT DVB-S2 tuners, FireDTV S2
3 x HD300s
Reply With Quote
  #9  
Old 11-20-2005, 04:16 AM
mj_wood mj_wood is offline
Sage User
 
Join Date: Nov 2005
Posts: 6
I left it on overnight and the guide had updated (with a smaller xml file that I am using for testing) when I got up this morning.
I've now tried replacing the epgdata.xml file with the one with all channels (still only 8 channels) and it seems to take about 15 minutes to update. Is this normal?
Reply With Quote
  #10  
Old 11-20-2005, 03:40 PM
Lucas Lucas is offline
Sage Icon
 
Join Date: Aug 2004
Location: Greece
Posts: 1,156
Alan replied that the encoding string can be configured in the .ini file.

The rest of the issues were always there and he is not planning to fix them in ver 2. He has fixed them in ver 3 beta.

BTW, I think the major obstacle is using the file to do the first channel definition. Afterwards, when the epg is populated, the epg update files, seem to be read eventually and update the epg.
__________________
Windows 10 64bit - Server: C2D, 6Gb RAM, 1xSamsung 840 Pro 128Gb, Seagate Archive HD 8TB - 2 x WD Green 1TB HDs for Recordings, PVR-USB2,Cinergy 2400i DVB-T, 2xTT DVB-S2 tuners, FireDTV S2
3 x HD300s
Reply With Quote
  #11  
Old 11-29-2005, 02:27 AM
Lucas Lucas is offline
Sage Icon
 
Join Date: Aug 2004
Location: Greece
Posts: 1,156
UPDATE: After setting the encoding to ISO8859-1 all is well as before.
__________________
Windows 10 64bit - Server: C2D, 6Gb RAM, 1xSamsung 840 Pro 128Gb, Seagate Archive HD 8TB - 2 x WD Green 1TB HDs for Recordings, PVR-USB2,Cinergy 2400i DVB-T, 2xTT DVB-S2 tuners, FireDTV S2
3 x HD300s
Reply With Quote
  #12  
Old 12-02-2005, 12:45 PM
birty birty is offline
Sage User
 
Join Date: Sep 2004
Posts: 71
version 3 is now out of beta and should fix all your encoding problems
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 02:31 PM.


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