[vdr] VDR version 1.3.38 incompatible with vdradmin?

Dominique Dumont domi.dumont at free.fr
Sat Jan 14 18:25:59 CET 2006


Dave P <vdr at pickles.me.uk> writes:

> OK, here's a quick-and-dirty patch to restore functionality to vdradmin 
> 0.97-am3.4.2 (this will word-wrap).

IMHO, using a "anything but white space" class in the regular
expression is safer than using _several_ non-greedy quantifiers.

So I suggest this patch, which also works:

--- vdradmind.pl~       2006-01-05 22:29:17.000000000 +0100
+++ vdradmind.pl        2006-01-14 18:14:32.000000000 +0100
@@ -735,7 +735,7 @@
                        else {
                                $bc++;
                                while($_ = $SVDRP->readoneline) {
-                                       if(/^E (.*) (.*) (.*) (.*)/ || /^E (.*) (.*) (.*)/) {
+                                       if(/^E ([^\s]*) ([^\s]*) ([^\s]*) /) {
                                                my($event_id, $time, $duration) = ($1, $2, $3);
                                                my($title, $subtitle, $summary);
                                                while($_ = $SVDRP->readoneline) {



More information about the vdr mailing list