Commits

Guido Draheim committed 2a71ab7

allow to choose planning algorithm

Comments (0)

Files changed (1)

src/dvbcronrecording/computer.py

             return plan
             
     def plan(self, entries):
+        if self.algorithm == "plan1":
+            return self.plan1(entries)
+        if self.algorithm == "plan2":
+            return self.plan2(entries)
         self.set_adapters_from_channels_list(self.channels_list())
+        if self.algorithm == "plan3":
+            return self.plan3(entries)
+        if self.algorithm == "plan4":
+            return self.plan4(entries)
+        #else:
         return self.plan3(entries)
 
 def deltaM(td):