summaryrefslogtreecommitdiff
path: root/sdt.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-08-27 09:29:30 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-08-27 09:29:30 +0200
commitfe37211da0b543271d77754faa50ef54dbe4fe52 (patch)
tree3c1b55bdd9adddb42aac82f986be2d38df099b8b /sdt.c
parent7ef6d79884c97c2c384657d358f7c3c5aee3f968 (diff)
downloadvdr-fe37211da0b543271d77754faa50ef54dbe4fe52.tar.gz
vdr-fe37211da0b543271d77754faa50ef54dbe4fe52.tar.bz2
Fixed detecting short channel names for "Kabel Deutschland"
Diffstat (limited to 'sdt.c')
-rw-r--r--sdt.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sdt.c b/sdt.c
index dcf6dc1b..74c55032 100644
--- a/sdt.c
+++ b/sdt.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: sdt.c 1.14 2005/05/14 09:39:46 kls Exp $
+ * $Id: sdt.c 1.15 2005/08/27 09:27:47 kls Exp $
*/
#include "sdt.h"
@@ -64,11 +64,14 @@ void cSdtFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
char *ps = compactspace(ShortNameBuf);
if (!*ps && cSource::IsCable(Source())) {
// Some cable providers don't mark short channel names according to the
- // standard, but rather go their own way and use "name>short name":
- char *p = strchr(pn, '>');
+ // standard, but rather go their own way and use "name>short name" or
+ // "name, short name":
+ char *p = strchr(pn, '>'); // fix for UPC Wien
+ if (!p)
+ p = strchr(pn, ','); // fix for "Kabel Deutschland"
if (p && p > pn) {
*p++ = 0;
- strcpy(ShortNameBuf, p);
+ strcpy(ShortNameBuf, skipspace(p));
}
}
sd->providerName.getText(ProviderNameBuf, sizeof(ProviderNameBuf));