diff --git a/README.md b/README.md index 65c4584..c42c725 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) -- [短剧刮削 1.1](docs%2FShortPlayMonitor.md) +- [短剧刮削 1.2](docs%2FShortPlayMonitor.md) diff --git a/docs/ShortPlayMonitor.md b/docs/ShortPlayMonitor.md index 9e7aef4..cf0a627 100644 --- a/docs/ShortPlayMonitor.md +++ b/docs/ShortPlayMonitor.md @@ -2,6 +2,7 @@ ### 更新记录 +- 1.2 修复转移bug - 1.1 增加排除关键词,立即执行一次 - 1.0 监控视频短剧创建,刮削 diff --git a/package.json b/package.json index e2e118d..8edf8ee 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "ShortPlayMonitor": { "name": "短剧刮削", "description": "监控视频短剧创建,刮削。", - "version": "1.1", + "version": "1.2", "icon": "Amule_B.png", "author": "thsrite", "level": 1 diff --git a/plugins/shortplaymonitor/__init__.py b/plugins/shortplaymonitor/__init__.py index 1858ed5..f22bf2d 100644 --- a/plugins/shortplaymonitor/__init__.py +++ b/plugins/shortplaymonitor/__init__.py @@ -46,7 +46,7 @@ class ShortPlayMonitor(_PluginBase): # 插件图标 plugin_icon = "Amule_B.png" # 插件版本 - plugin_version = "1.1" + plugin_version = "1.2" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -254,9 +254,9 @@ class ShortPlayMonitor(_PluginBase): return # 硬链接 - retcode, retmsg = SystemUtils.link(Path(source_dir), target_path) + retcode, retmsg = SystemUtils.link(Path(event_path), target_path) if retcode == 0: - logger.info(f"文件 {source_dir} 硬链接完成") + logger.info(f"文件 {event_path} 硬链接完成") # 生成缩略图 thumb_path = self.gen_file_thumb(file_path=target_path, @@ -264,7 +264,7 @@ class ShortPlayMonitor(_PluginBase): if not (target_path.parent / "poster.jpg").exists(): SystemUtils.copy(thumb_path, target_path.parent / "poster.jpg") else: - logger.error(f"文件 {source_dir} 硬链接失败,错误码:{retcode}") + logger.error(f"文件 {event_path} 硬链接失败,错误码:{retcode}") except Exception as e: logger.error(f"event_handler_created error: {e}")