From a914866044d462c1510917db61dc27cc7a2feaca Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 24 Aug 2025 12:52:18 +0800 Subject: [PATCH] bugfix --- downloadmgr/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloadmgr/download.py b/downloadmgr/download.py index bd555f5..a6f9e25 100644 --- a/downloadmgr/download.py +++ b/downloadmgr/download.py @@ -87,7 +87,7 @@ and finish_time = start_time""" async def check_download_finished(self, status): s = status - if s.totalLength == 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) await self.remove_task(s.gid)