From 65f81f0f896c16ca9da16e21fb97357e3aed94c3 Mon Sep 17 00:00:00 2001 From: Xtao_dada Date: Sun, 18 Oct 2020 00:17:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E4=BF=AE=E5=A4=8D=E8=85=BE?= =?UTF-8?q?=E8=AE=AF=E7=BF=BB=E8=AF=91=20(#64)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 临时修复腾讯翻译 * Update list.json --- list.json | 2 +- xtao-some.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/list.json b/list.json index cac8659..699c9f4 100644 --- a/list.json +++ b/list.json @@ -62,7 +62,7 @@ }, { "name": "xtao-some", - "version": "1.0", + "version": "1.01", "section": "daily", "maintainer": "xtaodada", "size": "18.8 kb", diff --git a/xtao-some.py b/xtao-some.py index 2f69996..e033075 100644 --- a/xtao-some.py +++ b/xtao-some.py @@ -372,7 +372,7 @@ async def tx_t(context): try: await context.edit("正在生成翻译中 . . .") tx_json = json.loads(requests.get( - "https://xtaolink.cn/git/m/t.php?lang=" + lang + '&text=' + clear_emojis(message)).content.decode( + "http://xtaolink.cn/git/m/t.php?lang=" + lang + '&text=' + clear_emojis(message)).content.decode( "utf-8")) if not tx_json['msg'] == 'ok': context.edit("出错了呜呜呜 ~ 翻译出错") @@ -387,4 +387,4 @@ async def tx_t(context): await context.edit("输出超出 TG 限制,正在尝试上传文件。") await attach_log(result, context.chat_id, "translation.txt", context.id) return - await context.edit(result) \ No newline at end of file + await context.edit(result)