From 4985d179770e4cf6d685db0515717d021281163a Mon Sep 17 00:00:00 2001 From: thsrite Date: Tue, 23 Jul 2024 09:27:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=88=A0=E9=99=A4=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=EF=BC=8C=E5=90=A6=E5=88=99=E5=AA=92=E4=BD=93?= =?UTF-8?q?=E5=BA=93=E5=90=8C=E6=AD=A5=E5=88=A0=E9=99=A4=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=B7=A5=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/cloudsyncdel/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/cloudsyncdel/__init__.py b/plugins/cloudsyncdel/__init__.py index 666ec41..02d8a93 100644 --- a/plugins/cloudsyncdel/__init__.py +++ b/plugins/cloudsyncdel/__init__.py @@ -97,6 +97,7 @@ class CloudSyncDel(_PluginBase): local_path = self.__get_path(self._local_paths, media_path) if Path(local_path).exists() and not Path(local_path).is_symlink(): + Path(local_path).unlink() logger.info(f"获取到本地路径 {local_path}, 通知媒体库同步删除插件删除") eventItem = schemas.WebhookEventInfo(event="media_del", channel="emby") eventItem.item_type = media_type