From 5fa384d802844c08716d786dc2039e35a17286c7 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Thu, 28 Jul 2011 18:30:17 +0200 Subject: Only add valid lines from config --- po/de_DE.po | 3 ++- po/it_IT.po | 3 ++- xmltv2vdr.cpp | 7 +++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/po/de_DE.po b/po/de_DE.po index 93a3b00..29db134 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -4,10 +4,11 @@ msgid "" msgstr "" "Project-Id-Version: vdr\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-07-09 19:55+0200\n" +"POT-Creation-Date: 2011-07-28 17:56+0200\n" "PO-Revision-Date: 2010-12-23 23:59+0100\n" "Last-Translator: Jochen Dolze \n" "Language-Team: \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/po/it_IT.po b/po/it_IT.po index cde8b6f..1c0d2e6 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -4,10 +4,11 @@ msgid "" msgstr "" "Project-Id-Version: vdr\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-07-09 19:55+0200\n" +"POT-Creation-Date: 2011-07-28 17:56+0200\n" "PO-Revision-Date: 2011-03-05 15:45+0100\n" "Last-Translator: Diego Pierotto \n" "Language-Team: \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/xmltv2vdr.cpp b/xmltv2vdr.cpp index b225274..bc52e8b 100644 --- a/xmltv2vdr.cpp +++ b/xmltv2vdr.cpp @@ -7,6 +7,7 @@ #include #include +#include #include #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++; } -- cgit v1.2.3