[vdr] epgsearch, timeline, and streamdev-client timer patches?

C.Y.M syphir at syphir.sytes.net
Mon Mar 21 06:38:35 CET 2005


The compile for Epgsearch-0.9.1, Timeline-0.9.0, and streamdev-client have broke
due to the timer changes in vdr-1.3.23.  Does anyone have a solution for these?

Note: I found this patch for vdradmin to support vdr-1.3.23 over on vdr portal.
 It did not seem to apply to my version so I re-created it.

Best Regards,
-------------- next part --------------
--- vdradmin/vdradmind.pl.orig	2005-02-04 00:43:58.000000000 -0800
+++ vdradmin/vdradmind.pl	2005-03-20 19:35:01.000000000 -0800
@@ -1256,26 +1256,24 @@
         substr($stop, 0, 2), $stop > $start ? $3 : $3 + 1, 
         ($2 - 1), $1);
     } else { # regular timer
-      $startsse = my_mktime(substr($start, 2, 2), 
-				substr($start, 0, 2), $dor, (my_strftime("%m") - 1),
-				my_strftime("%Y"));
+      $dor =~ /(\d\d\d\d)-(\d\d)-(\d\d)/;
+      $startsse = my_mktime(substr($start, 2, 2), substr($start, 0, 2), $3, ($2 - 1), $1);
 			
       $stopsse = my_mktime(substr($stop, 2, 2), 
-        substr($stop, 0, 2), $stop > $start ? $dor : $dor + 1, 
-        (my_strftime("%m") - 1), my_strftime("%Y"));
+	substr($stop, 0, 2), $stop > $start ? $3 : $3 + 1, ($2 - 1), $1);
     }
 
-    # move timers which have expired one month into the future
-    if(length($dor) != 7 && $stopsse < time) {
-			$startsse = my_mktime(substr($start, 2, 2), 
-        substr($start, 0, 2), $dor, (my_strftime("%m") % 12), 
-        (my_strftime("%Y") + (my_strftime("%m") == 12 ? 1 : 0)));
-
-      $stopsse = my_mktime(substr($stop, 2, 2), 
-        substr($stop, 0, 2), $stop > $start ? $dor : $dor + 1,
-        (my_strftime("%m") % 12), 
-        (my_strftime("%Y") + (my_strftime("%m") == 12 ? 1 : 0)));
-    }
+#    # move timers which have expired one month into the future
+#    if(length($dor) != 7 && $stopsse < time) {
+#			$startsse = my_mktime(substr($start, 2, 2), 
+#        substr($start, 0, 2), $dor, (my_strftime("%m") % 12), 
+#        (my_strftime("%Y") + (my_strftime("%m") == 12 ? 1 : 0)));
+#
+#      $stopsse = my_mktime(substr($stop, 2, 2), 
+#        substr($stop, 0, 2), $stop > $start ? $dor : $dor + 1,
+#        (my_strftime("%m") % 12), 
+#        (my_strftime("%Y") + (my_strftime("%m") == 12 ? 1 : 0)));
+#    }
 
     if($CONFIG{RECORDINGS} && length($dor) == 7)  { # repeating timer
       # generate repeating timer entries for up to 28 days


More information about the vdr mailing list