@@ -428,6 +428,7 @@ def gen_video_queue(name_hash,name,text_content, image_urls,avatar,user_id):
os.remove(tmp_video_dir+top1['name_hash']+'.mp4')
vid_duration = VideoFileClip(video_dest+top1['name_hash']+'.mp4').duration
left_time = first(db.query('SELECT * FROM users where id ="'+str(user_id)+'"'))['left_time']
+ print('left_time is '+str(left_time))
if left_time is None:
left_time = 5*60
if left_time < vid_duration: