create initial defaultTimer on __init__ so the plugin won't crash if it lacks a confi...
authorMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Sat, 21 Jun 2008 17:13:04 +0000 (17:13 +0000)
committerMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Sat, 21 Jun 2008 17:13:04 +0000 (17:13 +0000)
autotimer/src/AutoTimer.py

index be89bbb..44a52f2 100644 (file)
@@ -77,6 +77,12 @@ class AutoTimer:
                self.timers = []
                self.configMtime = -1
                self.uniqueTimerId = 0
+               self.defaultTimer = AutoTimerComponent(
+                       0,              # Id
+                       "",             # Name
+                       "",             # Match
+                       True    # Enabled
+               )
 
        def readXml(self):
                # Abort if no config found