def LIST(): if os.path.exists(DownloadFile): DownloadLog=re.compile('{name="(.+?)",destination="(.+?)"}').findall(open(DownloadFile,'r').read()) for name,video in reversed(DownloadLog): main.addDLog(name,video,242,'','','','','','')