neteasedown 修复缺失依赖包

This commit is contained in:
xtaodada 2021-12-04 17:45:42 +08:00
parent fae5d84979
commit 4425b76ae0
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 3 additions and 3 deletions

View File

@ -292,7 +292,7 @@
},
{
"name": "neteasedown",
"version": "1.2",
"version": "1.201",
"section": "daily",
"maintainer": "xtaodada",
"size": "6.7 kb",

View File

@ -12,7 +12,7 @@ try:
cc_imported = True
except ImportError:
print(f'[!] Please install {executable} -m pip install mutagen git+https://github.com/Xtao-Labs/pyncm.git')
print(f'[!] Please install {executable} -m pip install requests mutagen pycryptodome tqdm git+https://github.com/Xtao-Labs/pyncm.git')
cc_imported = False
@ -78,7 +78,7 @@ async def netease_down(track_info: dict, song_info: dict) -> str:
parameters="{关键词/id}/{login <账号> <密码>}/{clear}")
async def ned(context):
if not cc_imported:
await context.edit(f"[!] Please run `-sh {executable} -m pip install "
await context.edit(f"[!] Please run `-sh {executable} -m pip install requests pycryptodome tqdm "
f"mutagen git+https://github.com/Xtao-Labs/pyncm.git` and then restart pagermaid.")
return
if len(context.parameter) < 1: