diff options
author | Jochen Dolze <vdr@dolze.de> | 2011-07-28 18:30:17 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2011-07-28 18:30:17 +0200 |
commit | 5fa384d802844c08716d786dc2039e35a17286c7 (patch) | |
tree | 154dfa85eaccf03dd0fb1757d03fce0a5db00189 | |
parent | c4e9bfde803a12bc6da45c491884f1c0bd98be5b (diff) | |
download | vdr-plugin-xmltv2vdr-5fa384d802844c08716d786dc2039e35a17286c7.tar.gz vdr-plugin-xmltv2vdr-5fa384d802844c08716d786dc2039e35a17286c7.tar.bz2 |
Only add valid lines from config
-rw-r--r-- | po/de_DE.po | 3 | ||||
-rw-r--r-- | po/it_IT.po | 3 | ||||
-rw-r--r-- | 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: <see README>\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 <vdr@dolze.de>\n" "Language-Team: <vdr@linuxtv.org>\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: <see README>\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 <vdr-italian@tiscali.it>\n" "Language-Team: <vdr@linuxtv.org>\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 <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++; } |