From 9058f4cfa9bc4246f8da0b8b418920118901ef23 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 23 Aug 2025 15:02:38 +0800 Subject: [PATCH] bugfix --- downloadmgr/.download.py.swp | Bin 12288 -> 12288 bytes downloadmgr/download.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/downloadmgr/.download.py.swp b/downloadmgr/.download.py.swp index eb50a34511a02a4ec360d66173944495212070dd..8b550a8def9238ea94ccc086854b0f539eb651f8 100644 GIT binary patch delta 276 zcmW;AJxf9X0EOYBS8s_+?U70<3SHANTODi=Bt&qN@FRjd2%r0So8OGGrT0I%2tuO10+HqAmA6Hn9_zo8vd`H+Ql= BGm!uQ delta 276 zcmWm0F-rmg07vn^saF>bZc>XjXgVl{IGi*J(IB)G(b5%!E{7y&2!iJa5IN2isk_e~>!Po%fh}sk|qm zov>v2W^&b=nbJ32F+v}86p_IJR$I~%3w&XWAqKd{B`%Q0F6Nuk6k~L8hErtmV@Pj! z#=uZnF4KdJ65@#AGb&9mL>tFALK)V-;A7tjdxf1KpUQ=Tt8{B4(!6yVzLVSYe=~o< HB5N9JC&@ND diff --git a/downloadmgr/download.py b/downloadmgr/download.py index 1231add..02ec1cb 100644 --- a/downloadmgr/download.py +++ b/downloadmgr/download.py @@ -58,7 +58,7 @@ and finish_time is NULL""" d = json.loads(x.decode('utf-8')) return DictObject(**d) - async download(self, url): + async def download(self, url): try: d = await self.uapicall('addUrl', {'url':url}) await self.save_task(d.result) @@ -70,7 +70,7 @@ and finish_time is NULL""" async def delete_file(self, filename): pass - async remove_task(self, taskid): + async def remove_task(self, taskid): await self.uapicall('remove-task', {'taskid':taskid}) return True @@ -92,7 +92,7 @@ and finish_time is NULL""" rzt.filename = rzt.info.name return rzt - async get_tasks_status(self): + async def get_tasks_status(self): recs = await self.get_user_tasks(userid) urls = [r.id for r in recs] try: