summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-22 10:28:33 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-22 10:28:33 +0200
commit935cfc26833c1c577423a1de83e0aa0f937bf08e (patch)
tree72586310fa4e68bfec88f8003aefbe574f42564d
parent772c515d6a50f9d25d0e11f326e79fd1b53c0316 (diff)
downloadvdr-935cfc26833c1c577423a1de83e0aa0f937bf08e.tar.gz
vdr-935cfc26833c1c577423a1de83e0aa0f937bf08e.tar.bz2
Removing unnecessary double quotes from EPG Subtitle in EPGBugfixLevel >=1
-rw-r--r--HISTORY1
-rw-r--r--eit.c18
2 files changed, 18 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index e3438278..e0546753 100644
--- a/HISTORY
+++ b/HISTORY
@@ -772,3 +772,4 @@ Video Disk Recorder Revision History
the progress display; no more unnecessary display of "normal play mode".
- Supplying the new frontend parameter 'Inversion' (currently it is always
set to INVERSION_AUTO, which should work with all channels on Astra).
+- Removing unnecessary double quotes from EPG Subtitle in EPGBugfixLevel >=1.
diff --git a/eit.c b/eit.c
index d2927ccc..70f56e9e 100644
--- a/eit.c
+++ b/eit.c
@@ -16,7 +16,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: eit.c 1.22 2001/08/19 14:44:32 kls Exp $
+ * $Id: eit.c 1.23 2001/09/22 10:28:33 kls Exp $
***************************************************************************/
#include "eit.h"
@@ -447,6 +447,22 @@ void cEventInfo::FixEpgBugs(void)
pSubtitle = NULL;
}
+ // ZDF.info puts the Subtitle between double quotes, which is nothing
+ // but annoying (some even put a '.' after the closing '"'):
+ //
+ // Title
+ // "Subtitle"[.]
+ //
+ if (pSubtitle && *pSubtitle == '"') {
+ int l = strlen(pSubtitle);
+ if (l > 2 && (pSubtitle[l - 1] == '"' || (pSubtitle[l - 1] == '.' && pSubtitle[l - 2] == '"'))) {
+ memmove(pSubtitle, pSubtitle + 1, l);
+ char *p = strrchr(pSubtitle, '"');
+ if (p)
+ *p = 0;
+ }
+ }
+
if (Setup.EPGBugfixLevel <= 1)
return;