From dd26dd22f86130a1be6f9900a47cbc3c657b8bca Mon Sep 17 00:00:00 2001 From: "Formatter [BOT]" Date: Mon, 31 Mar 2025 09:57:47 +0000 Subject: [PATCH] =?UTF-8?q?Auto-format=20code=20=F0=9F=A7=B9=F0=9F=8C=9F?= =?UTF-8?q?=F0=9F=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaomusic/xiaomusic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xiaomusic/xiaomusic.py b/xiaomusic/xiaomusic.py index 03b46dd..057de79 100644 --- a/xiaomusic/xiaomusic.py +++ b/xiaomusic/xiaomusic.py @@ -793,9 +793,9 @@ class XiaoMusic: loop = asyncio.get_event_loop() # 延时配置项 file_watch_debounce self._file_watch_handler = XiaoMusicPathWatch( - callback = self._on_file_change, - debounce_delay = self.config.file_watch_debounce, - loop = loop, + callback=self._on_file_change, + debounce_delay=self.config.file_watch_debounce, + loop=loop, ) # 创建监控 music_path 目录对象 self._observer = Observer() @@ -2198,7 +2198,7 @@ class XiaoMusicPathWatch(FileSystemEventHandler): # 处理文件事件 src_ext = os.path.splitext(event.src_path)[1].lower() # 处理移动事件的目标路径 - if hasattr(event, 'dest_path'): + if hasattr(event, "dest_path"): dest_ext = os.path.splitext(event.dest_path)[1].lower() if dest_ext in SUPPORT_MUSIC_TYPE: self.schedule_callback()