for db in dbl:
if db['type']==recdblist.REC_KEYWORD or db['type']==recdblist.REC_KEYWORD_EVERY_SOME_DAYS:
dbn=epgdb.count_epgschedule(db['epgbtime'], db['epgetime'])
- bctypet=chdb.chtxtsearch(db['chtxt'])['bctype']
- if bctypet.find("cs") > -1 or bctypet.find("bs") > -1 :
- if dbn[1]>status.getRecordingMax()[1]:
- rec10d.rec10db.update_status_dup_timeline(db['type'], db['chtxt'], db['title'], db['btime'], "1")
+ try:
+ bctypet=chdb.chtxtsearch(db['chtxt'])['bctype']
+ if bctypet.find("cs") > -1 or bctypet.find("bs") > -1 :
+ if dbn[1]>status.getRecordingMax()[1]:
+ rec10d.rec10db.update_status_dup_timeline(db['type'], db['chtxt'], db['title'], db['btime'], "1")
+ else:
+ rec10d.rec10db.update_status_dup_timeline(db['type'], db['chtxt'], db['title'], db['btime'], "0")
else:
- rec10d.rec10db.update_status_dup_timeline(db['type'], db['chtxt'], db['title'], db['btime'], "0")
- else:
- if dbn[0]>status.getRecordingMax()[0]:
- rec10d.rec10db.update_status_dup_timeline(db['type'], db['chtxt'], db['title'], db['btime'], "1")
- else:
- rec10d.rec10db.update_status_dup_timeline(db['type'], db['chtxt'], db['title'], db['btime'], "0")
\ No newline at end of file
+ if dbn[0]>status.getRecordingMax()[0]:
+ rec10d.rec10db.update_status_dup_timeline(db['type'], db['chtxt'], db['title'], db['btime'], "1")
+ else:
+ rec10d.rec10db.update_status_dup_timeline(db['type'], db['chtxt'], db['title'], db['btime'], "0")
+ except:
+ ""
\ No newline at end of file
auto_opt VARCHAR(20),\
auto_del_tmp TINYINT\
)')
- db[1].execute("INSERT IGNORE into in_settings VALUE (0,0,\"G\",1)")
+ db[1].execute("INSERT IGNORE into in_settings VALUE (0,0,\"H\",1)")
except:
""
self.close_db(db)
self.close_db(db)
def update_db_to93(self):
db = self.connect_db()
+ self.drop_in_settings()
+ self.new_in_settings()
db[1].execute("\
ALTER TABLE timeline ADD epgtitle VARCHAR(100),\
ADD epgbtime DATETIME,\