diff options
Diffstat (limited to 'xmltv2vdr.cpp')
-rw-r--r-- | xmltv2vdr.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmltv2vdr.cpp b/xmltv2vdr.cpp index b225274..bc52e8b 100644 --- a/xmltv2vdr.cpp +++ b/xmltv2vdr.cpp @@ -7,6 +7,7 @@ #include <vdr/plugin.h> #include <string.h> +#include <time.h> #include <sys/wait.h> #include "xmltv2vdr.h" #include "extpipe.h" @@ -184,8 +185,10 @@ bool cEPGSource::ReadConfig() // backward compatibility cname++; } - cEPGChannel *epgchannel= new cEPGChannel(cname,false); - if (epgchannel) channels.Add(epgchannel); + if (!strchr(cname,' ') && (strlen(cname)>0)) { + cEPGChannel *epgchannel= new cEPGChannel(cname,false); + if (epgchannel) channels.Add(epgchannel); + } } linenr++; } |