From 3b2f1bda9e794dfa8d35c56f1d8811bc2bed6812 Mon Sep 17 00:00:00 2001 From: JoeanAmier Date: Tue, 2 Apr 2024 21:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=9F=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/application/app.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/application/app.py b/source/application/app.py index 94a8a77..3a55975 100644 --- a/source/application/app.py +++ b/source/application/app.py @@ -19,6 +19,7 @@ from source.module import ( ROOT, ERROR, WARNING, + MASTER, ) from source.module import Translate from source.module import logging @@ -193,9 +194,15 @@ class XHS: title = self.manager.filter_name(data["作品标题"]) or data["作品ID"] return f"{time_}_{author}_{title[:64]}" - async def monitor(self, delay=1, download=False, efficient=False, log=None, bar=None) -> None: + async def monitor(self, delay=1, download=False, log=None, bar=None) -> None: + logging( + None, + self.message( + "程序会自动读取并提取剪贴板中的小红书作品链接,并自动下载链接对应的作品文件,如需关闭,请点击关闭按钮,或者向剪贴板写入 “close” 文本!"), + style=MASTER, + ) self.event.clear() - await gather(self.__push_link(delay), self.__receive_link(delay, download, None, efficient, log, bar)) + await gather(self.__push_link(delay), self.__receive_link(delay, download, None, log, bar)) async def __push_link(self, delay: int): while not self.event.is_set():