def rec_reclog(title,chtxt,btime,etime,opt,exp,longexp,category):
rec10d.rec10db.add_in_timeline_log(chtxt,title,btime,etime,opt,exp,longexp,category)
def get_key():
- return rec10d.rec10db.select_all_in_auto_jbk_key()
\ No newline at end of file
+ return rec10d.rec10db.select_all_in_auto_jbk_key()
+def checkduplicate(title,chtxt,epgbtime,epgetime):
+ tl=rec10dbselect_byepgtime_all_timeline(epgbtime,epgetime)
+ dup=0
+ for t in tl:
+ if t["title"]==title and t["chtxt"]==chtxt:
+ dup=1
+ return dup
\ No newline at end of file
maxnum=epgdb.count_schedule_timeline(btimet, etimet)[0]
maxnum=int(configreader.getenv("te_max"))-maxnum
if maxnum>0:
- topt=status.getSettings_auto_opt()
- recdb.recreserv(titlet,chtxtt, btimet, etimet,topt)
+ if recdb.checkduplicate(titlet, chtxtt, btimet, etimet)==0:
+ recdb.recreserv(titlet,chtxtt, btimet, etimet,topt)
except Exception, inst:
recdblist.Commonlogex("Error", "search_keyword_auto_jbk(timerec.py)", str(type(inst)),str(inst)+traceback.format_exc(),log_level=200)
else: