Neteasemusic 奇怪的bug修复

Co-authored-by: TNTcraftHIM <TNTcraftHIM@users.noreply.github.com>
This commit is contained in:
AAA 2020-11-10 22:35:54 +08:00 committed by GitHub
parent 00a0672742
commit b496963ec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -282,7 +282,7 @@
}, },
{ {
"name": "neteasemusic", "name": "neteasemusic",
"version": "4.1", "version": "4.2",
"section": "daily", "section": "daily",
"maintainer": "TNTcraftHIM", "maintainer": "TNTcraftHIM",
"size": "29.1 kb", "size": "29.1 kb",

View File

@ -203,8 +203,9 @@ async def nem(context):
if idplay: if idplay:
req['result'] = req req['result'] = req
result = req['result'] result = req['result']
if req['result']['songCount'] == 0: if not idplay:
result = False if req['result']['songCount'] == 0:
result = False
else: else:
result = False result = False
if result: if result: