diff --git a/downloadmgr/.download.py.swp b/downloadmgr/.download.py.swp index eb50a34..8b550a8 100644 Binary files a/downloadmgr/.download.py.swp and b/downloadmgr/.download.py.swp differ 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: