3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009-2010 Yukikaze
27 recpath = configreader.getpath('recpath')
28 movepath = configreader.getpath('move_destpath')
29 path = str(os.path.dirname(os.path.abspath(__file__))) + "/"
36 if rec10d.rec10db.select_installed_in_status()==0 or rec10d.rec10db.select_version_in_status()<recdblist.version:
40 recdb.delete_old("24")
41 recdb.delete_old_auto_bayes("1")
42 recdb.delete_old_auto_keyword("1")
43 tasks = recdb.getnow("3")
44 inum = recdb.countRecNow_minutes("10")
45 recdblist.printutf8(u"rec10処理開始"+ datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
46 recdblist.printutf8(u"直近録画予約件数:" + str(inum) + u"BS/CS録画中件数:" + str(status.getBSCSRecording()) + u"TE録画中件数:" + str(status.getTERecording()) )
49 dnow=datetime.datetime.now()
55 for k in recdb.get_key():
64 auto_process.auto_check(recpath)
66 auto_process.kill_dead_encode(recpath)
68 update = chdb.update()
77 if bctype.find('te') > -1:
78 recnum = status.getTERecording() + recdb.countRecNow_minutes_TE("10")
79 recdblist.printutf8(u"放送種別:"+bctype + u"||該当チューナー実行中件数:" + str(status.getTERecording()) + u":直近予約件数:" + str(recdb.countRecNow_minutes_TE("10")))
80 recnum = int(configreader.getenv("te_max")) -recnum
82 recnum = status.getBSCSRecording() + recdb.countRecNow_minutes_BSCS("10")
83 recdblist.printutf8(u"放送種別:"+bctype + u"||該当チューナー実行中件数:" + str(status.getBSCSRecording()) + u":直近予約件数:" + str(recdb.countRecNow_minutes_BSCS("10")))
84 recnum = int(configreader.getenv("bscs_max")) -recnum
87 rec10d.rec10db.update_status_by_bctype_epg_ch(bctype, "0")
88 epgdb.updatebc(bctype)
89 update = chdb.update()
94 auto_process.update_all_timeline_epg()
101 auto_process.update_all_timeline_epg()
104 typetxt = task["type"]
107 chtxt = task['chtxt']
111 title = task['title']
115 btime = task['btime']
116 bt = datetime.datetime.strptime(btime, "%Y-%m-%d %H:%M:%S")
119 bt = datetime.datetime.strptime("2009-01-01 00:00:00", "%Y-%m-%d %H:%M:%S")
121 etime = task['etime']
122 et = datetime.datetime.strptime(etime, "%Y-%m-%d %H:%M:%S")
125 et = datetime.datetime.strptime("2009-01-01 00:00:00", "%Y-%m-%d %H:%M:%S")
131 keyeverycounter=task['counter']
134 tnow = datetime.datetime.now()
136 dt = dtt.days * 24 * 60 * 60 + dtt.seconds
137 if task["type"] == recdblist.REC_RESERVE:#"res,"+chtxt+","+title+","+btime+","+etime+","+opt
139 if pid != 0:#親プロセスの場合
141 else:#子プロセスの場合 アップデートを行って終了
142 type_reserve(task["type"],chtxt,title,bt,et,opt)
144 elif task["type"] == recdblist.REC_KEYWORD:#"key,"+chtxt+","+keyword+","+btime+","+deltatime+","+opt
145 deltatime = task['deltatime']
147 if pid != 0:#親プロセスの場合
149 else:#子プロセスの場合 アップデートを行って終了
150 type_keyword(task["type"],chtxt,title, bt, et, opt, deltatime)
152 elif task["type"] == recdblist.REC_KEYWORD_EVERY_SOME_DAYS:#"keyevery,"+chtxt+","+keyword+","+btime+","+deltatime+","+opt+","+deltaday
153 deltatime = task['deltatime']
154 deltaday = task['deltaday']
156 if pid != 0:#親プロセスの場合
158 else:#子プロセスの場合 アップデートを行って終了
159 type_keyword_every_day(task["type"],chtxt, title, bt, et, opt, deltatime, deltaday,keyeverycounter)
161 elif task["type"] == recdblist.REC_FINAL_RESERVE:#"rec,"+chtxt+","+title+","+btime+","+etime+","+opt
163 if pid != 0:#親プロセスの場合
165 else:#子プロセスの場合 アップデートを行って終了
166 type_final(task["type"],chtxt, title, bt, et, opt)
168 elif task["type"] == recdblist.REC_TS_DECODE_QUE:
171 if pid != 0:#親プロセスの場合
173 else:#子プロセスの場合 アップデートを行って終了
175 type_decode_que(task["type"],chtxt, title, bt, et, opt)
177 elif task["type"] == recdblist.REC_ENCODE_QUE:
178 encodenum=encodenum+1
180 if pid != 0:#親プロセスの場合
182 else:#子プロセスの場合 アップデートを行って終了
183 time.sleep(5*encodenum)
184 type_encode_que(task["type"],chtxt, title, bt, et, opt)
186 elif task["type"] == recdblist.REC_AVI_TO_MKV:
194 if configreader.getenv("make_mp4")==1:
198 if re.search("m", opt):
200 if re.search("4", opt):
202 recdb.del_reckey(recdblist.REC_AVI_TO_MKV, title, chtxt, btime)
203 recdb.rec_reckey(recdblist.REC_CHANGING_CANTAINER, title, chtxt, btime, etime, opt)
205 tv2mp4.raw2mp4(os.path.join(recpath,title+".264"),os.path.join(recpath,title+".mp4"),opt)
207 tv2mkv.raw2mkv(os.path.join(recpath,title+".264"),os.path.join(recpath,title+".mkv"),opt)
208 recdb.del_reckey(recdblist.REC_CHANGING_CANTAINER, title, chtxt, btime)
210 elif task["type"] == recdblist.REC_AVI_TO_MP4:
218 if configreader.getenv("make_mp4")==1:
222 if re.search("m", opt):
224 if re.search("4", opt):
226 recdb.del_reckey(recdblist.REC_AVI_TO_MP4, title, chtxt, btime)
227 recdb.rec_reckey(recdblist.REC_CHANGING_CANTAINER, title, chtxt, btime, etime, opt)
229 tv2mp4.ts2mp4(pin, pout, opt)
230 tv2mp4.raw2mp4(os.path.join(recpath,title+".264"),os.path.join(recpath,title+".mp4"),opt)
232 tv2mkv.raw2mkv(os.path.join(recpath,title+".264"),os.path.join(recpath,title+".mkv"),opt)
233 recdb.del_reckey(recdblist.REC_CHANGING_CANTAINER, title, chtxt, btime)
235 elif task["type"] == recdblist.REC_MKV_TO_MP4:
241 recdb.del_reckey(recdblist.REC_MKV_TO_MP4, title, chtxt, btime)
242 recdb.rec_reckey(recdblist.REC_CHANGING_CANTAINER, title, chtxt, btime, etime, opt)
243 tv2mp4.mkv2mp4(os.path.join(recpath,title+".mkv"),os.path.join(recpath,title+".mp4"))
244 recdb.del_reckey(recdblist.REC_CHANGING_CANTAINER, title, chtxt, btime)
247 def search_keyword(key):
248 tnow = datetime.datetime.now()
249 nows =tnow.strftime("%Y-%m-%d %H:%M:%S")
251 recdatum = epgdb.searchtime_auto(k,nows, "144")
252 for recdata in recdatum:
258 btt = datetime.datetime.strptime(btimet, "%Y-%m-%d %H:%M:%S")
259 ett = datetime.datetime.strptime(etimet, "%Y-%m-%d %H:%M:%S")
260 btimet = btt.strftime("%Y-%m-%d %H:%M:%S")
261 etimet = ett.strftime("%Y-%m-%d %H:%M:%S")
262 if status.getSettings_auto_jbk()==1:
263 topt=status.getSettings_auto_opt()
267 maxnum=epgdb.count_schedule_timeline(btimet, etimet)[1]
268 maxnum=int(configreader.getenv("bscs_max"))-maxnum
270 maxnum=epgdb.count_schedule_timeline(btimet, etimet)[0]
271 maxnum=int(configreader.getenv("te_max"))-maxnum
273 topt=status.getSettings_auto_opt()
274 recdb.recreserv(titlet,chtxtt, btimet, etimet,topt)
275 except Exception, inst:
276 print "error occures in search_keyword_auto_jbk"
277 print str(type(inst))
281 recdb.add_auto_keyword(chtxtt, titlet, btimet, etimet)
282 except Exception, inst:
283 print "error occures in search_keyword"
284 print str(type(inst))
286 def type_reserve(typetxt,chtxt,title,bt,et,opt):
287 btime = bt.strftime("%Y-%m-%d %H:%M:%S")
288 etime = et.strftime("%Y-%m-%d %H:%M:%S")
291 if typetxt==recdblist.REC_RESERVE:
292 typetxtfinal=recdblist.REC_FINAL_RESERVE
293 tnow = datetime.datetime.now()
295 dt = dtt.days * 24 * 60 * 60 + dtt.seconds
296 if (dt < 58 * 60 and dt > 30 * 60):
297 bctypet = chdb.chtxtsearch(chtxt)['bctype']
298 chdatat = rec10d.rec10db.select_by_bctype_epg_ch(bctypet)
299 dt1 = datetime.datetime.strptime(chdatat[0][5], "%Y-%m-%d %H:%M:%S")-datetime.datetime.now()
300 dt1 = dt1.days * 24 * 60 * 60 + dt1.seconds
302 recdata = epgdb.searchtime2(title, btime, "5", chtxt)
310 bt = datetime.datetime.strptime(btimen, "%Y-%m-%d %H:%M:%S")
311 et = datetime.datetime.strptime(etimen, "%Y-%m-%d %H:%M:%S")
312 btimen = bt.strftime("%Y-%m-%d %H:%M:%S")
313 etimen = et.strftime("%Y-%m-%d %H:%M:%S")
316 recdb.del_reckey(typetxtnow, title, chtxt, btime)
317 recdb.rec_reckey(typetxtfinal, titlen, chtxtn, btimen, etimen, opt)
318 recdb.rec_reclog(titlen, chtxtn, btimen, etimen, opt, exp, longexp, category)
319 auto_rec.add_key(chtxt, titlen,exp+" "+longexp)
320 auto_rec.add_key("ALL", titlen,exp+" "+longexp)
321 recdblist.printutf8(u"追いかけ機能実行中: "+title+" : "+titlen+" "+btimen+" "+etimen)
322 except Exception, inst:
323 print "Error happened in Oikake DB"
324 print str(type(inst))
327 recdblist.printutf8(u"追いかけ機能エラー:番組データが見付かりません。")
329 if rec10d.rec10db.select_by_bctype_epg_ch(bctypet)[0][6] != "0":
330 rec10d.rec10db.update_status_by_bctype_epg_ch(bctypet, "3")
332 elif (dt <= 30 * 60 and dt > 20 * 60):
333 recdata = epgdb.searchtime2(title, btime, "5", chtxt)
341 bt = datetime.datetime.strptime(btimen, "%Y-%m-%d %H:%M:%S")
342 et = datetime.datetime.strptime(etimen, "%Y-%m-%d %H:%M:%S")
343 btimen = bt.strftime("%Y-%m-%d %H:%M:%S")
344 etimen = et.strftime("%Y-%m-%d %H:%M:%S")
347 recdb.del_reckey(typetxtnow, title, chtxt, btime)
348 recdb.rec_reckey(typetxtfinal, titlen, chtxtn, btimen, etimen, opt)
349 recdb.rec_reclog(titlen, chtxtn, btimen, etimen, opt, exp, longexp, category)
350 auto_rec.add_key(chtxt, titlen,exp+" "+longexp)
351 auto_rec.add_key("ALL", titlen,exp+" "+longexp)
352 recdblist.printutf8(u"追いかけ機能実行中: "+title+" : "+titlen+" "+btimen+" "+etimen)
353 except Exception, inst:
354 print "Error happened in Oikake DB"
359 recdb.del_reckey(typetxtnow, title, chtxt, btime)
360 recdb.rec_reckey(typetxtfinal, title, chtxt, btime, etime, opt)
361 except Exception, inst:
364 def type_final(typetxt,chtxt,title,bt,et,opt):
365 btime = bt.strftime("%Y-%m-%d %H:%M:%S")
366 etime = et.strftime("%Y-%m-%d %H:%M:%S")
370 if typetxt==recdblist.REC_FINAL_RESERVE:
371 typetxting=recdblist.REC_TS_RECORDING
372 typetxtdecque=recdblist.REC_TS_DECODE_QUE
373 tnow = datetime.datetime.now()
375 dt = dtt.days * 24 * 60 * 60 + dtt.seconds
377 if dt < 6 * 60 and dt > 0:
379 recdb.del_reckey(typetxtnow, title, chtxt, btime)
380 testpath=[os.path.join(recpath,title+".ts.b25")]
381 testpath.append(os.path.join(recpath,title+".ts"))
382 testpath.append(os.path.join(recpath,title+".avi"))
383 testpath.append(os.path.join(recpath,title+".mp4"))
384 testpath.append(os.path.join(recpath,title+".log"))
387 if os.path.exists(ti):
389 if re.search("N", opt) or tcheck>0:
392 iff=u"("+configreader.getenv("iff")+u")_"
396 newtitle=newtitle+u"_"+iff+newtime.strftime("%Y-%m-%dT%H-%M-%S")
397 recdb.rec_reckey(typetxting, newtitle, chtxt, btime, etime, opt)
398 recdblist.printutf8(u"録画開始 "+newtitle+" "+btime+" "+etime)
399 tv2avi.timetv2b25(recpath + "/" + newtitle + ".avi", chtxt, btime, etime, opt)
400 recdb.del_reckey(typetxting, newtitle, chtxt, btime)
401 if not re.search("R", opt):
402 tnow = datetime.datetime.now()
403 bt = datetime.datetime.strptime(btime, "%Y-%m-%d %H:%M:%S")
404 et = datetime.datetime.strptime(etime, "%Y-%m-%d %H:%M:%S")
406 bt = tnow + datetime.timedelta(seconds=600)
407 et = et + dt + datetime.timedelta(seconds=600)
408 btime = bt.strftime("%Y-%m-%d %H:%M:%S")
409 etime = et.strftime("%Y-%m-%d %H:%M:%S")
410 recdb.rec_reckey(typetxtdecque, newtitle, chtxt, btime, etime, opt)
413 shutil.copy(os.path.join(recpath,title+".ts.b25"), os.path.join(movepath,title+".ts.b25"))
416 recdb.rec_reckey(recdblist.REC_MOVE_END, newtitle, chtxt, btime, etime, opt)
418 def type_keyword(typetxt,chtxt,title,bt,et,opt,deltatime):
419 btime = bt.strftime("%Y-%m-%d %H:%M:%S")
420 etime = et.strftime("%Y-%m-%d %H:%M:%S")
423 if typetxt==recdblist.REC_KEYWORD:
424 typetxtres=recdblist.REC_RESERVE
425 tnow = datetime.datetime.now()
427 dt = dtt.days * 24 * 60 * 60 + dtt.seconds
430 recdata = epgdb.searchtime2(title, btime, deltatime, chtxt)
439 bt = datetime.datetime.strptime(btimet, "%Y-%m-%d %H:%M:%S")
440 et = datetime.datetime.strptime(etimet, "%Y-%m-%d %H:%M:%S")
441 btimet = bt.strftime("%Y-%m-%d %H:%M:%S")
442 etimet = et.strftime("%Y-%m-%d %H:%M:%S")
444 recdb.del_reckey(typetxtnow, title, chtxt, btime)
445 recdb.rec_reckey(typetxtres, titlet, chtxtt, btimet, etimet, opt)
446 recdb.rec_reclog(titlet, chtxtt, btimet, etimet, opt, exp,longexp,category)
447 auto_rec.add_key(chtxt, titlet,exp+" "+longexp)
448 auto_rec.add_key("ALL", titlet,exp+" "+longexp)
449 recdblist.printutf8(u"key "+title+u" : "+titlet+u" "+btimet+u" "+etimet)
450 #except Exception, inst:
451 # recdblist.printutf8("Error happened in REC_KEYWORD DB")
452 # recdblist.printutf8(type(inst))
453 # recdblist.printutf8(inst)
455 recdblist.printutf8("nothing match")
456 def type_keyword_every_day(type,chtxt,title,bt,et,opt,deltatime,deltaday,counter):
457 btime = bt.strftime("%Y-%m-%d %H:%M:%S")
458 etime = et.strftime("%Y-%m-%d %H:%M:%S")
459 tnow = datetime.datetime.now()
461 dt = dtt.days * 24 * 60 * 60 + dtt.seconds
462 dd = datetime.timedelta(days=int(deltaday))
464 recdb.del_reckey(recdblist.REC_KEYWORD_EVERY_SOME_DAYS, title, chtxt, btime)
467 btxt = bt.strftime("%Y-%m-%d %H:%M:%S")
468 etxt = et.strftime("%Y-%m-%d %H:%M:%S")
469 recdb.everyreserv(title, chtxt, btxt, etxt, deltatime, opt, deltaday)
471 recdb.del_reckey(recdblist.REC_KEYWORD_EVERY_SOME_DAYS, title, chtxt, btime)
474 btxt = bt.strftime("%Y-%m-%d %H:%M:%S")
475 etxt = et.strftime("%Y-%m-%d %H:%M:%S")
477 recdb.everyreserv(title, chtxt, btxt, etxt, deltatime, opt, deltaday,counter-1)
479 recdb.everyreserv(title, chtxt, btxt, etxt, deltatime, opt, deltaday,-1)
480 recdata = epgdb.searchtime2(title, btime, deltatime, chtxt)
489 bt = datetime.datetime.strptime(btimet, "%Y-%m-%d %H:%M:%S")
490 et = datetime.datetime.strptime(etimet, "%Y-%m-%d %H:%M:%S")
491 btimet = bt.strftime("%Y-%m-%d %H:%M:%S")
492 etimet = et.strftime("%Y-%m-%d %H:%M:%S")
494 recdb.keyreserv(titlet, chtxtt, btimet, etimet, deltatime, opt)
496 recdb.keyreserv(title, chtxt, btime, etime, deltatime, opt)
497 def type_decode_que(typetxt,chtxt,title,bt,et,opt):
498 btime = bt.strftime("%Y-%m-%d %H:%M:%S")
499 etime = et.strftime("%Y-%m-%d %H:%M:%S")
500 tnow = datetime.datetime.now()
502 dt = dtt.days * 24 * 60 * 60 + dtt.seconds
507 if typetxt== recdblist.REC_TS_DECODE_QUE:
508 typetxting=recdblist.REC_TS_DECODING
509 typetxtmiss=recdblist.REC_MISS_DECODE
510 typetxtencque=recdblist.REC_ENCODE_QUE
511 tnow = datetime.datetime.now()
513 dt = dtt.days * 24 * 60 * 60 + dtt.seconds
515 if status.getB25Decoding() < 2:
516 pin = recpath + "/" + title
517 recdb.del_reckey(typetxtnow, title, chtxt, btime)
518 recdb.rec_reckey(typetxting, title, chtxt, btime, etime, opt)
519 tv2avi.b252ts(pin, chtxt, btime, etime, opt)
520 recdb.del_reckey(typetxting, title, chtxt, btime)
521 if not os.access(recpath + "/" + title + ".ts", os.F_OK):
522 recdb.del_reckey(typetxting, title, chtxt, btime)
523 recdb.rec_reckey(typetxtmiss, title, chtxt, btime, etime, opt)
525 ch=checker.checkB25Decode(recpath + "/" + title + ".ts.b25", recpath + "/" + title + ".ts")
528 os.remove(recpath + "/" + title + ".ts.b25")
529 bt = datetime.datetime.strptime(btime, "%Y-%m-%d %H:%M:%S")
530 et = datetime.datetime.strptime(etime, "%Y-%m-%d %H:%M:%S")
532 if not re.search("D", opt):
533 tnow = datetime.datetime.now()
534 bt = tnow + datetime.timedelta(seconds=600)
536 btime = bt.strftime("%Y-%m-%d %H:%M:%S")
537 etime = et.strftime("%Y-%m-%d %H:%M:%S")
538 recdb.rec_reckey(typetxtencque, title, chtxt, btime, etime, opt)
541 shutil.copy(os.path.join(recpath,title+".ts"), os.path.join(movepath,title+".ts"))
542 except Exception, inst:
543 errtxt="Error happened in type_decode_que in timerec.\n"
544 errtxt=errtxt+"move ts error.\n"
545 errtxt=errtxt+str(type(inst))+"\n"
546 errtxt=errtxt+str(inst)
547 recdblist.addlog(os.path.join(recpath,title+".ts"), errtxt, "timerec-move(Decode) error")
548 recdb.rec_reckey(recdblist.REC_MOVE_END, title, chtxt, btime, etime, opt)
550 recdb.del_reckey(typetxtnow, title, chtxt, btime)
551 bt = bt + datetime.timedelta(seconds=600)
552 et = et + datetime.timedelta(seconds=600)
553 btime = bt.strftime("%Y-%m-%d %H:%M:%S")
554 etime = et.strftime("%Y-%m-%d %H:%M:%S")
555 recdb.rec_reckey(typetxtnow, title, chtxt, btime, etime, opt)
558 def type_encode_que(typetxt,chtxt,title,bt,et,opt):
559 btime = bt.strftime("%Y-%m-%d %H:%M:%S")
560 etime = et.strftime("%Y-%m-%d %H:%M:%S")
561 tnow = datetime.datetime.now()
563 dt = dtt.days * 24 * 60 * 60 + dtt.seconds
567 if typetxt==recdblist.REC_ENCODE_QUE:
568 typetxting=recdblist.REC_ENCODE_LOCAL
569 typetxtfin=recdblist.REC_FIN_LOCAL
571 if status.getEncoding() < int(configreader.getenv("enc_max")):
572 recdb.del_reckey(typetxtnow, title, chtxt, btime)
573 recdb.rec_reckey(typetxting, title, chtxt, btime, etime, opt)
574 recdblist.printutf8(opt)
575 pin = recpath + "/" + title + ".ts"
576 if re.search("d", opt):
577 pin = recpath + "/" + title + ".m2v"
578 if not os.path.exists(pin) or os.path.getsize(pin)<100*1000:
579 paac2 = recpath + "/" + title + "_2.aac"
580 pmp32 = recpath + "/" + title + "_2.mp3"
581 if not os.path.exists(paac2) and not os.path.exists(pmp32):
582 tv2avi.dualaudio2sep(os.path.join(recpath, title+".ts"),"167")
584 elif re.search("5", opt):
585 pin = recpath + "/" + title + ".m2v"
586 if not os.path.exists(pin) or os.path.getsize(pin)<100*1000:
587 paac2 = recpath + "/" + title + "_2.aac"
588 pmp32 = recpath + "/" + title + "_2.mp3"
589 if not os.path.exists(paac2) and not os.path.exists(pmp32):
590 tv2avi.pentaaudio2sep(os.path.join(recpath, title+".ts"))
594 if configreader.getenv("make_mp4")=="1":
598 if re.search("m", opt):
600 if re.search("4", opt):
602 recdblist.printutf8(pin)
604 pout = recpath + "/" + title + ".mp4"
605 tv2mp4.ts2mp4(pin, pout, opt)
607 pout = recpath + "/" + title + ".mkv"
608 tv2mkv.ts2mkv(pin, pout, opt)
609 recdb.del_reckey(typetxting, title, chtxt, btime)
611 if re.search("E", opt):
613 if os.path.exists(os.path.join(recpath,title+".mp4")):
614 shutil.copy(os.path.join(recpath,title+".mp4"), os.path.join(movepath,title+".mp4"))
615 elif os.path.exists(os.path.join(recpath,title+".mkv")):
616 shutil.copy(os.path.join(recpath,title+".mkv"), os.path.join(movepath,title+".mkv"))
617 except Exception, inst:
618 errtxt="Error happened in type_encode_que in timerec.\n"
619 errtxt=errtxt+"move mkv/mp4 error.\n"
620 errtxt=errtxt+str(type(inst))+"\n"
621 errtxt=errtxt+str(inst)
622 recdblist.addlog(os.path.join(recpath,title+".ts"), errtxt, "timerec-move(Encode) error")
623 recdb.rec_reckey(recdblist.REC_MOVE_END, title, chtxt, btime, etime, opt)
624 recdb.rec_reckey(typetxtfin, title, chtxt, btime, etime, opt)
627 recdb.del_reckey(typetxtnow, title, chtxt, btime)
628 bt = bt + datetime.timedelta(seconds=600)
629 et = et + datetime.timedelta(seconds=600)
630 btime = bt.strftime("%Y-%m-%d %H:%M:%S")
631 etime = et.strftime("%Y-%m-%d %H:%M:%S")
632 recdb.rec_reckey(typetxtnow, title, chtxt, btime, etime, opt)