mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix 修复重命名true/false/smart
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
### 更新记录
|
||||
|
||||
- 2.2 修复重命名true/false/smart
|
||||
- 2.1 修复重命名
|
||||
- 2.0 保留比例截图
|
||||
- 1.5 生成tvshow.nfo
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
"ShortPlayMonitor": {
|
||||
"name": "短剧刮削",
|
||||
"description": "监控视频短剧创建,刮削。",
|
||||
"version": "2.1",
|
||||
"version": "2.2",
|
||||
"icon": "Amule_B.png",
|
||||
"author": "thsrite",
|
||||
"level": 1
|
||||
|
||||
@@ -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), "")
|
||||
|
||||
Reference in New Issue
Block a user