Hi,
some providers badly mix short and extended event description together into one description.
Result is that only part of whole text description is visible in skin (widget source="ServiceEvent", convert type="EventName" ExtendedDescription).
Is it possible to correct it?
Many thanks.
I found this workaround in the OpenPLI lib/service/event.cpp file which works fine:
Code
bool eServiceEvent::loadLanguage(Event *evt, std::string lang, int tsidonid)
{
...
case EXTENDED_EVENT_DESCRIPTOR:
{
...
if (lang == "---" || lang.find(cc) != -1)
{
/*
* Bit of a hack, some providers put the event description partly in the short descriptor,
* and the remainder in extended event descriptors.
* In that case, we cannot really treat short/extended description as separate descriptions.
* Unfortunately we cannot recognise this, but we'll use the length of the short description
* to guess whether we should concatenate both descriptions (without any spaces)
*/
if (m_extended_description.empty() && m_short_description.size() >= 180)
{
m_extended_description = m_short_description;
m_short_description = "";
}
m_extended_description += convertDVBUTF8(eed->getText(), table, tsidonid);
retval = 1;
}
#if 0
...
Alles anzeigen