Solved Unavailable one channel on kodi
#1
Hi,
To have the guide (EPG) on kodi and nextpvr I use http://www.xmltv.fr/.
Most of the time all the channels are well imported in KODI, but sometimes as today it misses the information on a channel.
Yet the information of the channel is well presented in NextPVR.
Image

Edit: FULL log DEBUG
EGP11.db
npvr.db3
I do not understand why kodi does not import it?
Reply
#2
Please always provide the FULL debug log, not just the parts that you find interesting. Bugs can start at any time.
Reply
#3
There is nothing obvious in that log. 

Maybe try opening http://192.168.1.1:8866/service?method=c...a7328ea031 in your browser, to check you don't get any error message. Also try copying the data returned, and paste it into https://www.xmlvalidation.com/ to check it's valid.
Reply
#4
I opened the link and I have an error message in the browser.
"error on line 46 at column 1429: Opening and ending tag mismatch: br line 0 and description"
I put the source of this link: http://192.168.1.1:8866/service?method=c...a7328ea031:
 source epg channel id 7253

On the website https://www.xmlvalidation.com I got this message:

"An error has been found!

Click on to jump to the error. In the document, you can point to your mouse to see the error message.
Errors in the XML document:
2: 6 The processing instruction target matching "[xX] [mM] [lL]" is not allowed. "
Reply
#5
Save the data returned in a file, and supply it, and I'll take a look.
Reply
#6
If you mentioned the source of this link 192.168.1.1:8866/service?method=channel.listings&channel_id=7253&start=1522921070&end=1523612270&sid=e9a3c9a5045b47cba0ed4ba7328ea031
It's here: epg channel id 7253

Strangely I come to redo a test with xmlvalidation.com I do not get the same error:
"Errors in the XML document: 46:1417The element type "br" must be terminated by the matching end-tag "</br>"."
I had to go wrong by copying the source the first time.
Reply
#7
The problem is caused by your XMLTV source, which looks like it's scraping content from a website, but failing to strip the embedded html <br> tags within the description.

That said, NextPVR isn't nicely handling the fact this garbage is there.
Reply
#8
How can I remove that so kodi can understand it?
Thank you for your time and analysis

edit: Is it  "<br>Florence Broizat"  that is too much if I understood correctly? I will ask the person who makes the xml if he can fix it.
thanks
Reply
#9
They just need to replace any occurrences of <br> with a newline character (or a space).

Either way, in the next build of NextPVR, I'll include some logic to better cope with this type of garbage in the descriptions.
Reply
#10
Thank you for your support.
I will try to remove this poo with a script for now.
I can not find how to put post in resolved?

Edit:I tested quickly remove the <br> but it does not seem to be resolved. I think remove all error on xml. I will test better tomorrow.
new source: epg channel id 7253
I must have forgotten something but I do not see?
Reply
#11
Did you remember to do an 'update EPG' in NextPVR to get it to read your now-corrected xml file?
Reply
#12
Yes. I erased the EPG on NextPVR and then updated. Then I erased the EPG on KODI then KODI synchronizes the EPG automatically.
There must still be a term that must upset KODI but I do not see what it can be. Unless I have zapped something else?

Edit: Actually I had zapped some stuff I just deleted the "&lt;br&gt" (it's written like that in the original xml). I also had to erase the "&lt;" and "&gt" and everything is back in order.

Thank you it's solved
Reply

Logout Mark Read Team Forum Stats Members Help
Unavailable one channel on kodi0