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), "")