mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 12:55:38 +00:00
neteasedown fix a bug
This commit is contained in:
parent
4425b76ae0
commit
bcbb12683c
@ -292,7 +292,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "neteasedown",
|
"name": "neteasedown",
|
||||||
"version": "1.201",
|
"version": "1.202",
|
||||||
"section": "daily",
|
"section": "daily",
|
||||||
"maintainer": "xtaodada",
|
"maintainer": "xtaodada",
|
||||||
"size": "6.7 kb",
|
"size": "6.7 kb",
|
||||||
|
@ -85,6 +85,10 @@ async def ned(context):
|
|||||||
# 使用方法
|
# 使用方法
|
||||||
await context.edit(f"**使用方法:** `-{alias_command('ned')}" + " {关键词/id}/{login <账号> <密码>}`")
|
await context.edit(f"**使用方法:** `-{alias_command('ned')}" + " {关键词/id}/{login <账号> <密码>}`")
|
||||||
return
|
return
|
||||||
|
# 加载登录信息
|
||||||
|
if isfile(f"data{sep}session.ncm"):
|
||||||
|
with open(f"data{sep}session.ncm") as f:
|
||||||
|
SetCurrentSession(LoadSessionFromString(f.read()))
|
||||||
# 处理账号登录
|
# 处理账号登录
|
||||||
if context.parameter[0] == "login":
|
if context.parameter[0] == "login":
|
||||||
# 显示登录信息
|
# 显示登录信息
|
||||||
@ -121,10 +125,6 @@ async def ned(context):
|
|||||||
remove(f"data{sep}{i}")
|
remove(f"data{sep}{i}")
|
||||||
await context.edit("**已清除缓存**")
|
await context.edit("**已清除缓存**")
|
||||||
return
|
return
|
||||||
# 加载登录信息
|
|
||||||
if isfile(f"data{sep}session.ncm"):
|
|
||||||
with open(f"data{sep}session.ncm") as f:
|
|
||||||
SetCurrentSession(LoadSessionFromString(f.read()))
|
|
||||||
# 搜索歌曲
|
# 搜索歌曲
|
||||||
song_id = context.arguments
|
song_id = context.arguments
|
||||||
# id
|
# id
|
||||||
|
Loading…
Reference in New Issue
Block a user