diff --git a/downloadmgr/download.py b/downloadmgr/download.py index a6f9e25..5ef7e7c 100644 --- a/downloadmgr/download.py +++ b/downloadmgr/download.py @@ -87,6 +87,8 @@ and finish_time = start_time""" async def check_download_finished(self, status): s = status + s.totalLength = int(s.totalLength) + s.completedLength = int(s.completedLength) if s.totalLength > 0 and s.totalLength == s.completedLength: await self.save_finished_task(s.gid) await self.file_downloaded(s.info.name)