From a668dfc779d2b31d245c562b00a8108a64bf1888 Mon Sep 17 00:00:00 2001 From: Mike Lampard Date: Wed, 24 Nov 2004 02:58:20 +0000 Subject: add support for slightly non-standard? ?zap channels.conf files CVS patchset: 7152 CVS date: 2004/11/24 02:58:20 --- src/input/input_dvb.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c index 72aa63858..198efcbd2 100644 --- a/src/input/input_dvb.c +++ b/src/input/input_dvb.c @@ -671,7 +671,12 @@ static int extract_channel_from_string(channel_t * channel,char * str,fe_type_t if (!(field = strsep(&tmp, ":"))) return -1; channel->service_id = strtoul(field, NULL, 0); - + + /* some channel.conf files are generated with the service ID 1 to the right + this needs investigation */ + if ((field = strsep(&tmp, ":"))) + if(strtoul(field,NULL,0)>0) + channel->service_id = strtoul(field, NULL, 0); return 0; } -- cgit v1.2.3