From a668e1acb53ba9b00729d75737234fd712f9490a Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 12 Aug 2020 02:14:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20netease=20=E5=9C=A8=E6=AD=8C?= =?UTF-8?q?=E6=9B=B2=E4=B8=8A=E6=B7=BB=E5=8A=A0=E8=AF=95=E5=90=AC=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- list.json | 2 +- netease.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/list.json b/list.json index f43ca8f..c37e09a 100644 --- a/list.json +++ b/list.json @@ -102,7 +102,7 @@ }, { "name": "netease", - "version": "1.0", + "version": "1.1", "section": "daily", "maintainer": "xtaodada、KorenKrita", "size": "0.7 kb", diff --git a/netease.py b/netease.py index 94ff008..8ce3ec6 100644 --- a/netease.py +++ b/netease.py @@ -11,7 +11,9 @@ async def netease(context): req = get("https://api.oioweb.cn/api/wyypl.php") if req.status_code == 200: data = json.loads(req.text) - res = data['Comment'] + '\n\n来自 @' + data['UserName'] + ' 在鸽曲"' + data['SongName'] + '"-' + data['SongAutho'] + '下方的评论' + res = data['Comment'] + '\n\n来自 @' + data[ + 'UserName'] + ' 在鸽曲"' + \ + data['SongName'] + '"-' + data['SongAutho'] + '下方的评论' await context.edit(res, parse_mode='html', link_preview=True) else: await context.edit("出错了呜呜呜 ~ 无法访问到 API 服务器 。") \ No newline at end of file