fix 修复转移bug

This commit is contained in:
thsrite
2024-01-03 19:41:44 +08:00
parent b0c41fdb1d
commit 230b9e0131
4 changed files with 7 additions and 6 deletions

View File

@@ -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)

View File

@@ -2,6 +2,7 @@
### 更新记录
- 1.2 修复转移bug
- 1.1 增加排除关键词,立即执行一次
- 1.0 监控视频短剧创建,刮削

View File

@@ -122,7 +122,7 @@
"ShortPlayMonitor": {
"name": "短剧刮削",
"description": "监控视频短剧创建,刮削。",
"version": "1.1",
"version": "1.2",
"icon": "Amule_B.png",
"author": "thsrite",
"level": 1

View File

@@ -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}")