ret['id'] = id
ret['type'] = typet
ret['chtxt'] = chtxt
- ret['title'] = title.encode('utf-8')
+ ret['title'] = title
btime = btime.strftime("%Y-%m-%d %H:%M:%S")
etime = etime.strftime("%Y-%m-%d %H:%M:%S")
ret['btime'] = btime
ret = {}
ret['type'] = typet
ret['chtxt'] = chtxt
- ret['title'] = title.encode('utf-8')
+ ret['title'] = title
btime = btime.strftime("%Y-%m-%d %H:%M:%S")
etime = etime.strftime("%Y-%m-%d %H:%M:%S")
ret['btime'] = btime
ret = {}
ret['type'] = typet
ret['chtxt'] = chtxt
- ret['title'] = title.encode('utf-8')
+ ret['title'] = title
btime = btime.strftime("%Y-%m-%d %H:%M:%S")
etime = etime.strftime("%Y-%m-%d %H:%M:%S")
ret['btime'] = btime
return [te num,bs/cs num]
"""
db = self.connect_db()
- dbexe = "SELECT type,epg_ch.bctype,chtxt,title FROM timeline INNER JOIN epg_ch ON timeline.chtxt=epg_ch.chtxt"
+ dbexe = "SELECT type,epg_ch.bctype,timeline.chtxt,title FROM timeline INNER JOIN epg_ch ON timeline.chtxt=epg_ch.chtxt"
dbexe = dbexe + " WHERE NOT( ( timeline.etime <= %s ) OR ( timeline.btime >= %s ) )"
Srec = 0
Trec = 0