add some missing changes
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 6 May 2006 16:21:57 +0000 (16:21 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 6 May 2006 16:21:57 +0000 (16:21 +0000)
RecordTimer.py
data/skin_default.xml

index 87aa197..186b386 100644 (file)
@@ -42,9 +42,16 @@ class AFTEREVENT:
 
 # please do not translate log messages
 class RecordTimerEntry(timer.TimerEntry):
-       def __init__(self, serviceref, begin, end, name, description, eit, disabled = False, justplay = False, afterEvent = AFTEREVENT.NONE):
+       def __init__(self, serviceref, begin, end, name, description, eit, disabled = False, justplay = False, afterEvent = AFTEREVENT.NONE, checkOldTimers = False):
                timer.TimerEntry.__init__(self, int(begin), int(end))
                
+               if checkOldTimers == True:
+                       if self.begin < time.time() - 1209600:
+                               self.begin = int(time.time())
+               
+               if self.end < self.begin:
+                       self.end = self.begin
+               
                assert isinstance(serviceref, ServiceReference)
                
                self.service_ref = serviceref
index 3ed48ea..6ebc952 100644 (file)
                <widget name="duration" position="140,345" size="100,30" font="Regular;22" />
                <widget name="channel" position="240,345" size="270,30" font="Regular;22" />
        </screen>
-       <screen name="PictureInPicture" position="500,100" size="180,140" zPosition="-1" flags="wfNoBorder" >
-               <widget name="video" position="0,0" size="160,120" />
+       <screen name="PictureInPicture" position="400,60" size="240,192" zPosition="-1" flags="wfNoBorder" >
+               <widget name="video" position="0,0" size="240,192" />
        </screen>
        <screen name="PiPSetup" backgroundColor="transparent" position="70,400" size="600,150" title="PiPSetup" flags="wfNoBorder">
                <widget name="text" position="0,0" size="600,150" font="Regular;23" />