You are here

Too long description in xml

4 posts / 0 new
Last post
fracti0n
Offline
Joined: 6 years
Last seen: 3 years
Too long description in xml

Hi, i just need a help with too long description in xml. It is grabed from csfd.cz, but it contains too much characters, so when use xml in kodi, it crashes and i am unable to start kodi until i delete the xml. Is there any way i can "shorten" the description in site.ini?

Attachments: 
fracti0n
Offline
Joined: 6 years
Last seen: 3 years

Hi, Ii cant send you kodi log right now, bcs the show, that was crashing kodi is finished at the moment, so it is not crashing kodi anymore. Anyway I was trying to find what is crashing kodi and i have found, that its beacuse of xml i load into tvheadend... i was discovering whats causing the problem and i have found, that it is in xml data in 1 of 27 channels (channel name is ČT2) i am grabing data for. So then i was looking for any anomaly in xml data in that channel and i have found, that there is extremely long description for one show called "Zašlapané projekty" - check attached guide xml. If i changed csfd.cz.ini to not grab "description", then i was able to load xml into tvheadend / kodi, but without any description. So thats what makes me think, that kodi is crashing because of too long description. 

fracti0n
Offline
Joined: 6 years
Last seen: 3 years

Thank You very much. I will try it and let you know, if it helps.)

fracti0n
Offline
Joined: 6 years
Last seen: 3 years

Hi, thank You once again. It works, but i had to be more strict and i had to do it this way, because there were another shows with long description, but just with one <br />

description.scrub {single(separator="<br />" include=first)|<h3>Obsah|<div data-truncate="570">|</div>|</li>}

 

 

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl