mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Removed EPG bugfix #0, because it removed actually important data
This commit is contained in:
parent
e67fe0983d
commit
40336edc2a
1
HISTORY
1
HISTORY
@ -3938,3 +3938,4 @@ Video Disk Recorder Revision History
|
||||
(reported by Stefan Huelswitt).
|
||||
- Fixed setting the help key display in the Recordings menu in case of several
|
||||
layers of subdirectories.
|
||||
- Removed EPG bugfix #0, because it removed actually important data.
|
||||
|
28
epg.c
28
epg.c
@ -7,7 +7,7 @@
|
||||
* Original version (as used in VDR before 1.3.0) written by
|
||||
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
||||
*
|
||||
* $Id: epg.c 1.38 2005/10/09 12:57:55 kls Exp $
|
||||
* $Id: epg.c 1.39 2005/11/06 10:31:58 kls Exp $
|
||||
*/
|
||||
|
||||
#include "epg.h"
|
||||
@ -425,32 +425,6 @@ void cEvent::FixEpgBugs(void)
|
||||
// EPG data. Let's fix their bugs as good as we can:
|
||||
if (title) {
|
||||
|
||||
// Some channels put too much information into the ShortText and leave the
|
||||
// Description empty:
|
||||
//
|
||||
// Title
|
||||
// (NAT, Year Min')[ ["ShortText". ]Description]
|
||||
//
|
||||
if (shortText && !description) {
|
||||
if (*shortText == '(') {
|
||||
char *e = strchr(shortText + 1, ')');
|
||||
if (e) {
|
||||
if (*(e + 1)) {
|
||||
if (*++e == ' ')
|
||||
if (*(e + 1) == '"')
|
||||
e++;
|
||||
}
|
||||
else
|
||||
e = NULL;
|
||||
char *s = e ? strdup(e) : NULL;
|
||||
free(shortText);
|
||||
shortText = s;
|
||||
EpgBugFixStat(0, ChannelID());
|
||||
// now the fixes #1 and #2 below will handle the rest
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Some channels put the ShortText in quotes and use either the ShortText
|
||||
// or the Description field, depending on how long the string is:
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user