From 2119d8b6cd6b5f57e5e3fde4844aa069a2ec8e13 Mon Sep 17 00:00:00 2001 From: thsrite Date: Thu, 27 Jun 2024 10:46:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/libraryduplicatecheck/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/libraryduplicatecheck/__init__.py b/plugins/libraryduplicatecheck/__init__.py index a53b103..3dd0507 100644 --- a/plugins/libraryduplicatecheck/__init__.py +++ b/plugins/libraryduplicatecheck/__init__.py @@ -70,8 +70,8 @@ class LibraryDuplicateCheck(_PluginBase): if not self._EMBY_HOST.startswith("http"): self._EMBY_HOST = "http://" + self._EMBY_HOST - if config.get("paths"): - for path in str(config.get("paths")).split("\n"): + if config.get("path"): + for path in str(config.get("path")).split("\n"): if path.count("#") == 1: path = path.split("#")[0] library_name = path.split("#")[1] @@ -452,7 +452,7 @@ class LibraryDuplicateCheck(_PluginBase): { 'component': 'VTextarea', 'props': { - 'model': 'paths', + 'model': 'path', 'label': '检查路径', 'rows': 2, 'placeholder': "检查的媒体路径#媒体库名称\n" @@ -492,7 +492,7 @@ class LibraryDuplicateCheck(_PluginBase): "onlyonce": False, "delete_softlink": False, "cron": "5 1 * * *", - "paths": "", + "path": "", "notify": False, "retain_type": "仅检查", "rmt_mediaext": ".mp4, .mkv, .ts, .iso,.rmvb, .avi, .mov, .mpeg,.mpg, .wmv, .3gp, .asf, .m4v, .flv, .m2ts, .strm,.tp, .f4v"