summaryrefslogtreecommitdiff
path: root/eepg.c
diff options
context:
space:
mode:
Diffstat (limited to 'eepg.c')
-rw-r--r--eepg.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/eepg.c b/eepg.c
index ac2f9fa..10e966e 100644
--- a/eepg.c
+++ b/eepg.c
@@ -2508,8 +2508,13 @@ int cFilterEEPG::GetSummariesSKYBOX (const u_char * Data, int Length)
CleanString (S->Text);
char * delim = strstr ( (char *)S->Text, STxtDelim );
//S->ShortTextLength = delim == NULL ? 0 : delim - (char *)S->Text;
- if (Format == SKY_UK && !delim && strncmp((char *)S->Text,"...",3) == 0)
- delim = strstr ( (char *)(S->Text+3), "." );
+ if (Format == SKY_UK && !delim && strncmp((char *)S->Text,"..",2) == 0) {
+ char * tdlm = strpbrk ( (char *)(S->Text+3), ".?!" );
+ if (tdlm && tdlm[0] != '.')
+ tdlm++;
+ if (tdlm)
+ delim = tdlm;
+ }
int shLen = delim - (char *)S->Text;
S->ShortTextLength = delim == NULL || shLen > numeric_limits<u_char>::max() ? 0 : shLen;
LogI(4, prep("EventId %08x Summnr %d:%.30s."), S->EventId, nSummaries, S->Text);