OSDN Git Service

fix bug.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 4 Sep 2009 06:26:54 +0000 (06:26 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 4 Sep 2009 06:26:54 +0000 (06:26 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@151 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/epgdb.py
rec10/trunk/src/n_gram.py
rec10/trunk/src/timerec.py
rec10/trunk/src/ts2epg.py

index 6f9b5a0..9013e1e 100644 (file)
@@ -66,8 +66,6 @@ def updateall():
     updatebc("cs1")
     updatebc("cs2")
     updatebc("bs")
-#def search(titletxt):
-##   return rec10d.rec10db.select_by_title_tv(titletxt)
 def searchtime2(titletxt, timet, deltatime, chtxt):
     time = datetime.datetime.strptime(timet, "%Y-%m-%d %H:%M:%S")
     ret = []
index 50bbd84..fe88532 100644 (file)
@@ -37,6 +37,6 @@ def find_gram(gram, s):
     i = 0
     while st.find(gram) != -1:
         i = i + 1
-    st = st[st.find(gram) + 1:]
+        st = st[st.find(gram) + 1:]
     return i
 ""
\ No newline at end of file
index 05484b7..1caa500 100644 (file)
@@ -260,3 +260,4 @@ def task():
                     btime = bt.strftime("%Y-%m-%d %H:%M:%S")
                     etime = et.strftime("%Y-%m-%d %H:%M:%S")
                     recdb.rec_reckey(recdb.REC_ENCODE_QUE, title, chtxt, btime, etime, opt)
+    sys.exit()
\ No newline at end of file
index 88aca5b..18e179b 100644 (file)
@@ -21,10 +21,10 @@ def write(pout, ch):
     timet = "90"
     if re.search(u'cs', bctype):
         mode = "/CS"
-        timet = "180"
+        timet = "150"
     elif re.search(u'bs', bctype):
         mode = "/BS"
-        timet = "180"
+        timet = "150"
     else:
         mode = chdb.bctypesearch(u'te' + ch)['ontv']
     epgdump = configreader.getpath("epgdump")