Commits

Guido Draheim committed 5c82d3b

add date check

  • Participants
  • Parent commits 9391297

Comments (0)

Files changed (1)

src/dvbcronrecording/programguide.py

             if int(month) < current.month:
                 year += 1  
             newdate = datetime.datetime(year, int(month), int(day))
+        elif date == "heute":
+            newdate = datetime.datetime.now()
+        else:
+            return self.do_default(req, "OOPS, no date found in '%s'" % (date))
         m = on_time.match(time)
         if m:
             newtime = m.group(1)