1. Guido Draheim
  2. trac-dvbcronrecording-plugin

Commits

Guido Draheim  committed 2a71ab7

allow to choose planning algorithm

  • Participants
  • Parent commits ce8bc14
  • Branches default

Comments (0)

Files changed (1)

File src/dvbcronrecording/computer.py

View file
             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):