OSDN Git Service

add logo search.
[rec10/rec10-git.git] / rec10 / trunk / src / chdata.py
index 6f34b67..861719b 100644 (file)
@@ -1,18 +1,20 @@
 #!/usr/bin/python\r
 # coding: UTF-8\r
 # Rec10 TS Recording Tools\r
-# Copyright (C) 2009-2010 Yukikaze\r
+# Copyright (C) 2009-2011 Yukikaze\r
 import os.path\r
 import configreader\r
 import xml.dom.minidom\r
 import scan_ch\r
+import datetime\r
 \r
 import rec10d\r
 \r
 path = str(os.path.dirname(os.path.abspath(__file__))) + "/"\r
 \r
 def chAdd(bctype, chtxt, ch, csch):#すべて文字列\r
-    rec10d.rec10db.add_epg_ch(bctype,chtxt, ch, csch, u"2010-01-01 00:00:00")\r
+    tnow=datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")\r
+    rec10d.rec10db.add_epg_ch(bctype,chtxt, ch, csch, u"2010-01-01 00:00:00",u"2010-01-01 00:00:00",tnow)\r
 def addCHlist(cl):\r
     if len(cl)>0:\r
         for c in cl:\r