xmltv2vdr-1.0.6

Message ID 1140353385.5928.23.camel@wopr.deltab.de
State New
Headers

Commit Message

Andreas Brachold Feb. 19, 2006, 12:49 p.m. UTC
  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
  

Patch

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);