日志记录逻辑

This commit is contained in:
2019-04-10 07:04:12 +08:00
committed by JerryYan
parent e066048e9f
commit e77fa5d6ad
6 changed files with 14 additions and 9 deletions

View File

@ -37,6 +37,7 @@ def download(url):
f.close()
isDownload = False
if os.path.getsize(path) < 1024 * 1024:
Common.modifyLastDownloadStatus("Downloaded File >{}< is too small, will ignore it".format(path))
os.remove(path)
return False
if Common.forceNotDownload: