stop downloading with update room

This commit is contained in:
2020-01-10 22:00:28 +08:00
parent 179dc18ec8
commit 53fd5c3f65
2 changed files with 2 additions and 1 deletions

@ -36,6 +36,7 @@ def download():
Common.modifyLastDownloadStatus("Download >{}< Finished".format(path))
except Exception as e:
Common.appendError("Download >{}< With Exception {}".format(path, e.__str__()))
Common.api.updRoomInfo(True)
f.close()
if os.path.getsize(path) < 1024 * 1024:
Common.modifyLastDownloadStatus("Downloaded File >{}< is too small, will ignore it".format(path))