diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-22 10:28:33 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-22 10:28:33 +0200 |
commit | 935cfc26833c1c577423a1de83e0aa0f937bf08e (patch) | |
tree | 72586310fa4e68bfec88f8003aefbe574f42564d /eit.c | |
parent | 772c515d6a50f9d25d0e11f326e79fd1b53c0316 (diff) | |
download | vdr-935cfc26833c1c577423a1de83e0aa0f937bf08e.tar.gz vdr-935cfc26833c1c577423a1de83e0aa0f937bf08e.tar.bz2 |
Removing unnecessary double quotes from EPG Subtitle in EPGBugfixLevel >=1
Diffstat (limited to 'eit.c')
-rw-r--r-- | eit.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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; |