Here is my mod of cEventInfo::FixEpgBugs() to fix the canalsatellite france EPG. + // Some channels on CanalSatellite France repeats Subtitle + // in Extended Description + // + // Title + // Subtitle + // Subtitle [Extended description] + // + + if (pExtendedDescription && strcmp(pSubtitle, pExtendedDescription) == 0) { + free(pExtendedDescription); + pExtendedDescription = NULL; + } + else { + if (*pSubtitle && *pExtendedDescription) { + char *s = pSubtitle; + char *p = pExtendedDescription; + while (*s && *p) { + s++;p++; + } + char *d = strdup(p + 1); + free(pExtendedDescription); + pExtendedDescription = d; + } + } One can check the behaviour on Canal +:11856:V:S19.2E:27500:160:80,81:0:0:8201:0:0:0 The patch provided also add a bugfixlevel for easy testing ; just switch between bugfixlevel 2 and 3 to see the difference.
Attachment:
patch.diff
Description: Binary data