Skip to content

Commit

Permalink
update v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ihmily committed May 13, 2024
1 parent 00002ea commit 7be3f21
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions quark.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ async def create_dir(self, pdir_name='新建文件夹') -> None:
json=json_data, headers=self.headers, timeout=timeout)
json_data = response.json()
if json_data["code"] == 0:
custom_print(f'根目录下 {pdir_name} 文件夹创建成功!')
custom_print(f'根目录下 {pdir_name} 文件夹创建成功!')
self.save_pid(json_data["data"]["fid"], pdir_name)
global to_dir_id
to_dir_id = json_data["data"]["fid"]
custom_print(f"自动将保存目录切换至{pdir_name}文件夹")
custom_print(f"自动将保存目录切换至 {pdir_name} 文件夹")
elif json_data["code"] == 23008:
custom_print(f'文件夹同名冲突,请更换一个文件夹名称后重试')
else:
Expand Down Expand Up @@ -348,7 +348,7 @@ async def submit_task(self, task_id: str, retry: int = 50) -> Union[
folder_name = ' 根目录'
if json_data['data']['task_title'] == '分享-转存':
custom_print(f"结束任务ID:{task_id}")
custom_print(f'文件保存位置:{folder_name} 文件夹')
custom_print(f'文件保存位置:{folder_name} 文件夹')
return json_data
else:
if json_data['code'] == 32003 and 'capacity limit' in json_data['message']:
Expand Down Expand Up @@ -402,7 +402,7 @@ async def load_folder_id(self, renew=False) -> Union[tuple, None]:

if not renew:
custom_print(f'用户名:{await self.get_user_info()}')
custom_print(f'你当前选择的网盘保存目录: {dir_name} 文件夹')
custom_print(f'你当前选择的网盘保存目录: {dir_name} 文件夹')
return pdir_id, dir_name


Expand Down Expand Up @@ -461,7 +461,7 @@ def print_menu() -> None:

elif input_text.strip() == '3':
to_dir_id, to_dir_name = asyncio.run(quark_file_manager.load_folder_id(renew=True))
custom_print(f"已切换保存目录至网盘 {to_dir_name} 文件夹\n")
custom_print(f"已切换保存目录至网盘 {to_dir_name} 文件夹\n")

elif input_text.strip() == '4':
create_name = input("请输入需要创建的文件夹名称:")
Expand Down Expand Up @@ -491,4 +491,4 @@ def print_menu() -> None:
sys.exit(-1)

else:
custom_print("输入无效,请重新输入")
custom_print("输入无效,请重新输入")

0 comments on commit 7be3f21

Please sign in to comment.