def gen_video_infos_by_type(strtype,url=''): global videos global total_pic_infos if strtype=='qq': if len(url)<7: url="http://v.qq.com/" videos=getvideoinfos.get_qq_video_infos(url) elif strtype=='hlstv': videos=PPlive.getppliveurl() if len(videos)>0: total_pic_infos = len(videos) gen_pic_infos(videos,0)