From f26b6805e76727d8305cacf093c79f5f71cbb4c3 Mon Sep 17 00:00:00 2001 From: xtaodada <1344089750@qq.com> Date: Thu, 20 Feb 2020 16:08:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=83=20=E6=B7=BB=E5=8A=A0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E8=A7=86=E9=A2=91=E6=88=90=E5=8A=9F=E5=90=8E=E7=9A=84?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- some-plugins/yb-dl.py | 2 ++ some-plugins/yt-dl.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/some-plugins/yb-dl.py b/some-plugins/yb-dl.py index 4bdddf6..0260733 100644 --- a/some-plugins/yb-dl.py +++ b/some-plugins/yb-dl.py @@ -28,10 +28,12 @@ async def ybdl(context): if not await fetch_video(url, context.chat_id, reply_id): await context.edit("出错了呜呜呜 ~ 视频下载失败。") await log(f"已拉取UTB视频,地址: {url}.") + await context.edit("视频获取成功!") if bilibili_pattern.match(url): if not await fetch_video(url, context.chat_id, reply_id): await context.edit("出错了呜呜呜 ~ 视频下载失败。") await log(f"已拉取 Bilibili 视频,地址: {url}.") + await context.edit("视频获取成功!") async def fetch_video(url, chat_id, reply_id): """ Extracts and uploads YouTube video. """ diff --git a/some-plugins/yt-dl.py b/some-plugins/yt-dl.py index 762c5bd..0cf4373 100644 --- a/some-plugins/yt-dl.py +++ b/some-plugins/yt-dl.py @@ -15,7 +15,7 @@ async def ytdl(context): url = context.arguments reply = await context.get_reply_message() reply_id = None - await context.edit("正在拉取视频 . . .") + await context.edit("获取视频中 . . .") if reply: reply_id = reply.id if url is None: @@ -27,6 +27,7 @@ async def ytdl(context): if not await fetch_youtube_video(url, context.chat_id, reply_id): await context.edit("出错了呜呜呜 ~ 视频下载失败。") await log(f"已拉取UTB视频,地址: {url}.") + await context.edit("视频获取成功!") async def fetch_youtube_video(url, chat_id, reply_id):