OSDN Git Service

add tsid channel information for complete BS support.
[rec10/rec10-git.git] / rec10 / trunk / src / chdata.py
index 861719b..47a2ace 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/python\r
 # coding: UTF-8\r
 # Rec10 TS Recording Tools\r
-# Copyright (C) 2009-2011 Yukikaze\r
+# Copyright (C) 2009-2012 Yukikaze\r
 import os.path\r
 import configreader\r
 import xml.dom.minidom\r
@@ -12,9 +12,9 @@ import rec10d
 \r
 path = str(os.path.dirname(os.path.abspath(__file__))) + "/"\r
 \r
-def chAdd(bctype, chtxt, ch, csch):#すべて文字列\r
+def chAdd(bctype, chtxt, ch, csch,tsid="0"):#すべて文字列\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
+    rec10d.rec10db.add_epg_ch(bctype,chtxt, ch, csch,tsid, 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