sql="select id from pl_hash_list where info_hash='"+shash+"'"
info=self.query(sql)
iflen(info[0])>0:
sid=str(info[0][0])
printinfo
sql="select id from pl_hash_file where name='"+ \
sname+"' and pid='"+pid+"'"
printself.query(sql)
info=self.query(
"select id from pl_hash_list where info_hash='"+shash+"'")
printself.query("insert into pl_hash_file (`pid`,`name`,`m3u8`,`length`,`create_time`) values('"+sid+"','"+sname+"','"+'dd'+"','"+total_size+"','"+ct+"')")
iflen(info)>0:
pid=str(info[0][0])
file_data=self.query(
"select id from pl_hash_file where name='"+sname+"' and pid='"+pid+"'")
iflen(file_data)==0:
self.query("insert into pl_hash_file (`pid`,`name`,`m3u8`,`length`,`create_time`) values('"+
printself.query("insert into pl_hash_list (`name`,`info_hash`,`data_hash`,`length`,`create_time`) values('"+sname+"','"+shash+"','da12','"+total_size+"','"+ct+"')")