Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: epg2timers 0.9.6.



Hi Carsten,

great work. I am really dependend on your work. ;-)

> Contributions are welcome!

There are still two problems in the loadvdr.pl script. It would be
really nice if you could add this changes to future versions. 
The timeout may cause that the timer list is not programmed fully. 10 s
is much to short if you program more than 100 timers. The second changes
fixes the problem of disappearing timers programmed by other methods
when more than 99 timers are programmed. I program timers till 28 days
in advance.

--- epg2timers/loadvdr.pl       Sat Apr 27 16:04:28 2002
+++ epg2timers.sav/loadvdr.pl   Sat Nov  2 18:25:37 2002
@@ -18,7 +18,7 @@
 $Dest = "localhost";
 $Port = 2001;

-$Timeout = 10; # max. seconds to wait for response
+$Timeout = 30; # max. seconds to wait for response

 $SIG{ALRM} = sub { Error("timeout"); };
 alarm($Timeout);
@@ -35,7 +35,7 @@
 Send("lstt");

 foreach $item (reverse @resp){
-  if ($item =~ /^250.(\d{1,2}).*\(epg2timers\)/) {
+  if ($item =~ /^250-(\d{1,3}) .*\(epg2timers\)/) {
     Send_void("DELT $1");
   }
 }

Thanks,

Emil


--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index