From 151b63fa432d6ce6ee67fdfc0dc294f0143801d0 Mon Sep 17 00:00:00 2001 From: thsrite Date: Sun, 7 Apr 2024 15:38:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=9B=AE=E5=BD=95=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=8B=E8=BD=BD=E5=8E=86=E5=8F=B2=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- plugins/dirmonitor/__init__.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fc8c689..cf887c0 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "DirMonitor": { "name": "目录监控", "description": "监控目录文件发生变化时实时整理到媒体库。", - "version": "1.8", + "version": "1.9", "icon": "directory.png", "author": "jxxghp", "level": 1 diff --git a/plugins/dirmonitor/__init__.py b/plugins/dirmonitor/__init__.py index 5034ca5..0e27d1b 100644 --- a/plugins/dirmonitor/__init__.py +++ b/plugins/dirmonitor/__init__.py @@ -59,7 +59,7 @@ class DirMonitor(_PluginBase): # 插件图标 plugin_icon = "directory.png" # 插件版本 - plugin_version = "1.8" + plugin_version = "1.9" # 插件作者 plugin_author = "jxxghp" # 作者主页 @@ -371,6 +371,8 @@ class DirMonitor(_PluginBase): # 识别媒体信息 mediainfo: MediaInfo = self.chain.recognize_media(meta=file_meta, + mtype=MediaType( + download_history.type) if download_history else None, tmdbid=download_history.tmdbid if download_history else None) if not mediainfo: logger.warn(f'未识别到媒体信息,标题:{file_meta.name}')