Commit Message
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
@@ -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);