From b496963ec7ac3eb844459b4ec397d9e75bf41e63 Mon Sep 17 00:00:00 2001 From: AAA <35992542+TNTcraftHIM@users.noreply.github.com> Date: Tue, 10 Nov 2020 22:35:54 +0800 Subject: [PATCH] =?UTF-8?q?Neteasemusic=20=E5=A5=87=E6=80=AA=E7=9A=84bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: TNTcraftHIM --- list.json | 2 +- neteasemusic.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/list.json b/list.json index f6dc50e..8362296 100644 --- a/list.json +++ b/list.json @@ -282,7 +282,7 @@ }, { "name": "neteasemusic", - "version": "4.1", + "version": "4.2", "section": "daily", "maintainer": "TNTcraftHIM", "size": "29.1 kb", diff --git a/neteasemusic.py b/neteasemusic.py index c3651b5..d3ce9f7 100644 --- a/neteasemusic.py +++ b/neteasemusic.py @@ -203,8 +203,9 @@ async def nem(context): if idplay: req['result'] = req result = req['result'] - if req['result']['songCount'] == 0: - result = False + if not idplay: + if req['result']['songCount'] == 0: + result = False else: result = False if result: