NeteaseMusic修复一个小bug

This commit is contained in:
TNTcraftHIM 2020-11-10 22:11:01 +08:00
parent 2351940f14
commit a7d46a88c6
2 changed files with 4 additions and 2 deletions

View File

@ -282,10 +282,10 @@
}, },
{ {
"name": "neteasemusic", "name": "neteasemusic",
"version": "3.9", "version": "4.0",
"section": "daily", "section": "daily",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "28.9 kb", "size": "29.0 kb",
"supported": true, "supported": true,
"des-short": "网易云搜歌/随机热歌/点歌", "des-short": "网易云搜歌/随机热歌/点歌",
"des": "可以在线搜索并且快速点歌可回复信息点歌也支持随机热歌功能支持解锁VIP/灰色歌曲。命令nem。" "des": "可以在线搜索并且快速点歌可回复信息点歌也支持随机热歌功能支持解锁VIP/灰色歌曲。命令nem。"

View File

@ -104,6 +104,8 @@ async def nem(context):
req = json.loads(req.content) req = json.loads(req.content)
if req['code'] == 200: if req['code'] == 200:
result = req['result'] result = req['result']
if req['result']['songCount'] == 0:
result = False
else: else:
result = False result = False
if result: if result: