def add_remote_download_task(self, link):
ruokuai_captcha_handler = functools.partial(<EOL>self.ruokuai_captcha_handler,<EOL>self.captcha_params<EOL>)<EOL>pcs = PCS(<EOL>self.baidu_username,<EOL>self.baidu_password,<EOL>ruokuai_captcha_handler,<EOL>None,<EOL>)<EOL>rsp = pcs.list_files(BASE_PATH)<EOL>result = rsp.json()<EOL>exist_list = []<EOL>if result['<STR_LIT>'] == <NUM_LIT:0>:<EOL><INDENT>exist_list = result['<STR_LIT:list>']<EOL><DEDENT>else:<EOL><INDENT>print(json.dumps(result))<EOL><DEDENT>exist_names = [exist['<STR_LIT>'] for exist in exist_list]<EOL>if link not in exist_names:<EOL><INDENT>pcs.add_download_task(<EOL>link,<EOL>BASE_PATH<EOL>)<EOL><DEDENT>else:<EOL><INDENT>print(link + '<STR_LIT>')<EOL><DEDENT>
向百度网盘中添加离线下载链接