1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

No longer removing superfluous hyphens in EPG data

This commit is contained in:
Klaus Schmidinger 2005-11-11 13:38:45 +01:00
parent 13e925c3f4
commit 609a4cd6cf
2 changed files with 3 additions and 14 deletions

View File

@ -3945,3 +3945,5 @@ Video Disk Recorder Revision History
- Added compiler options "-fPIC -g" to all plugins (thanks to Rolf Ahrenberg). - Added compiler options "-fPIC -g" to all plugins (thanks to Rolf Ahrenberg).
- Fixed initializing the day index when editing the weekday parameter of a - Fixed initializing the day index when editing the weekday parameter of a
repeating timer (thanks to Marco Schlüßler). repeating timer (thanks to Marco Schlüßler).
- No longer removing superfluous hyphens in EPG data - would become too
language dependent to handle all kinds of exceptions.

15
epg.c
View File

@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by * Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
* *
* $Id: epg.c 1.39 2005/11/06 10:31:58 kls Exp $ * $Id: epg.c 1.40 2005/11/11 13:37:43 kls Exp $
*/ */
#include "epg.h" #include "epg.h"
@ -503,19 +503,6 @@ void cEvent::FixEpgBugs(void)
title = compactspace(title); title = compactspace(title);
shortText = compactspace(shortText); shortText = compactspace(shortText);
description = compactspace(description); description = compactspace(description);
// Remove superfluous hyphens:
if (description) {
char *p = description;
while (*p && *(p + 1) && *(p + 2)) {
if (*p == '-' && *(p + 1) == ' ' && p != description && islower(*(p - 1)) && islower(*(p + 2))) {
if (!startswith(p + 2, "und ")) { // special case in German, as in "Lach- und Sachgeschichten"
memmove(p, p + 2, strlen(p + 2) + 1);
EpgBugFixStat(5, ChannelID());
}
}
p++;
}
}
#define MAX_USEFUL_EPISODE_LENGTH 40 #define MAX_USEFUL_EPISODE_LENGTH 40
// Some channels put a whole lot of information in the ShortText and leave // Some channels put a whole lot of information in the ShortText and leave