diff --git a/README.md b/README.md index 40b6e39..60ae960 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ - [自定义命令 v1.7](docs%2FCustomCommand.md) - docker自定义任务 v1.3 - 插件彻底卸载 v1.0 -- 实时软连接 v1.5 +- 实时软连接 v1.6 - 订阅规则自动填充 v2.7 - Emby元数据刷新 v1.1 - Emby媒体标签 v1.2 diff --git a/package.json b/package.json index c495059..3e862af 100644 --- a/package.json +++ b/package.json @@ -378,11 +378,12 @@ "name": "实时软连接", "description": "监控目录文件变化,媒体文件软连接,其他文件可选复制。", "labels": "文件管理", - "version": "1.5", + "version": "1.6", "icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/softlink.png", "author": "thsrite", "level": 1, "history": { + "v1.6": "bug修复", "v1.5": "优化性能,提高处理速度", "v1.4": "支持自定义视频格式", "v1.3": "异步启动" diff --git a/plugins/filesoftlink/__init__.py b/plugins/filesoftlink/__init__.py index 88d985c..4e9f4de 100644 --- a/plugins/filesoftlink/__init__.py +++ b/plugins/filesoftlink/__init__.py @@ -52,7 +52,7 @@ class FileSoftLink(_PluginBase): # 插件图标 plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/softlink.png" # 插件版本 - plugin_version = "1.4" + plugin_version = "1.6" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -337,8 +337,8 @@ class FileSoftLink(_PluginBase): os.makedirs(Path(target_file).parent) # 媒体文件软连接 - if Path(target_file).suffix.lower() not in [ext.strip() for ext in - self._rmt_mediaext.split(",")]: + if Path(target_file).suffix.lower() in [ext.strip() for ext in + self._rmt_mediaext.split(",")]: retcode, retmsg = SystemUtils.softlink(file_path, Path(target_file)) logger.info(f"创建媒体文件软连接 {str(file_path)} 到 {target_file} {retcode} {retmsg}") else: