From 4c4c627db5e8cdab47eb933537dcdeebcc1c304d Mon Sep 17 00:00:00 2001 From: thsrite Date: Mon, 8 Jan 2024 13:44:09 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8Dtrue/false/smart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- docs/ShortPlayMonitor.md | 1 + package.json | 2 +- plugins/shortplaymonitor/__init__.py | 5 +++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e47605a..065c1f7 100644 --- a/README.md +++ b/README.md @@ -24,5 +24,5 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ - [订阅提醒 1.1](docs%2FSubscribeReminder.md) - [Emby观影报告 1.4](docs%2FEmbyReporter.md) - [豆瓣明星热映订阅 1.2](docs%2FActorSubscribe.md) -- [短剧刮削 2.1](docs%2FShortPlayMonitor.md) +- [短剧刮削 2.2](docs%2FShortPlayMonitor.md) diff --git a/docs/ShortPlayMonitor.md b/docs/ShortPlayMonitor.md index d76d71b..8cafecd 100644 --- a/docs/ShortPlayMonitor.md +++ b/docs/ShortPlayMonitor.md @@ -2,6 +2,7 @@ ### 更新记录 +- 2.2 修复重命名true/false/smart - 2.1 修复重命名 - 2.0 保留比例截图 - 1.5 生成tvshow.nfo diff --git a/package.json b/package.json index ec7648f..e8cc9af 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "ShortPlayMonitor": { "name": "短剧刮削", "description": "监控视频短剧创建,刮削。", - "version": "2.1", + "version": "2.2", "icon": "Amule_B.png", "author": "thsrite", "level": 1 diff --git a/plugins/shortplaymonitor/__init__.py b/plugins/shortplaymonitor/__init__.py index 23467d8..3ef9a0c 100644 --- a/plugins/shortplaymonitor/__init__.py +++ b/plugins/shortplaymonitor/__init__.py @@ -48,7 +48,7 @@ class ShortPlayMonitor(_PluginBase): # 插件图标 plugin_icon = "Amule_B.png" # 插件版本 - plugin_version = "2.1" + plugin_version = "2.2" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -235,7 +235,8 @@ class ShortPlayMonitor(_PluginBase): target_path = event_path.replace(source_dir, dest_dir) # 目录重命名 - if isinstance(rename_conf, bool): + if str(rename_conf) == "true" or str(rename_conf) == "false": + rename_conf = bool(rename_conf) target = target_path.replace(dest_dir, "") parent = Path(Path(target).parents[0]) last = target.replace(str(parent), "")