From patchwork Sun Feb 19 12:49:45 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andreas Brachold X-Patchwork-Id: 12208 Received: from n114-088.dsl.de.inter.net ([213.73.114.88] helo=wopr.deltab.de) by www.linuxtv.org with esmtp (Exim 4.50) id 1FAo12-0001K9-UA for vdr@linuxtv.org; Sun, 19 Feb 2006 13:50:17 +0100 Received: from andreas by wopr.deltab.de with local (Exim 4.50) id 1FAo0Y-0001ez-3i for vdr@linuxtv.org; Sun, 19 Feb 2006 13:49:46 +0100 From: Andreas Brachold To: VDR Mailing List Date: Sun, 19 Feb 2006 13:49:45 +0100 Message-Id: <1140353385.5928.23.camel@wopr.deltab.de> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 Subject: [vdr] xmltv2vdr-1.0.6 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2006 12:50:17 -0000 Status: O X-Status: X-Keywords: X-UID: 7984 Hi, I played a little with xmltv2vdr¹, and found a mistake. Feel someone responsible for maintenance? I never found a homepage of that tool. Here I attached a patch to fix a wrong translation of xml entries, and have a little enhance, to disable erase all epg data as default. Cu, Andreas ¹) ftp://ftp.cadsoft.de/vdr/Tools/xmltv2vdr-1.0.6.tar.gz diff -Nur xmltv2vdr-1.0.6.org/xmltv2vdr.pl xmltv2vdr-1.0.6/xmltv2vdr.pl --- xmltv2vdr-1.0.6.org/xmltv2vdr.pl 2004-04-19 21:02:25.000000000 +0200 +++ xmltv2vdr-1.0.6/xmltv2vdr.pl 2006-02-19 07:51:44.000000000 +0100 @@ -280,13 +272,14 @@ VDR (default: 300s) -v Show warning messages -x xmltv output File containing xmltv data + -e erase EPG database on vdr }; $sim=0; -die $Usage if (!getopts('a:d:p:l:t:x:c:vhs') || $opt_h); +die $Usage if (!getopts('a:d:p:l:t:x:c:vhse') || $opt_h); $verbose = 1 if $opt_v; $sim = 1 if $opt_s; @@ -333,8 +326,11 @@ # Look for initial banner SVDRPreceive(220); -SVDRPsend("CLRE"); -SVDRPreceive(250); + +if($opt_e){ + SVDRPsend("CLRE"); + SVDRPreceive(250); +} # Do the EPG stuff ProcessEpg($descv);