FFmpeg缩略图 兼容V2

This commit is contained in:
jxxghp
2024-10-19 17:27:09 +08:00
parent aa3a4f7ec9
commit 1ac1ab7586
2 changed files with 16 additions and 1 deletions

View File

@@ -109,5 +109,17 @@
"history": {
"v2.0": "兼容MoviePilot V2 版本"
}
},
"FFmpegThumb": {
"name": "FFmpeg缩略图",
"description": "TheMovieDb没有背景图片时使用FFmpeg截取视频文件缩略图",
"labels": "刮削",
"version": "2.0",
"icon": "ffmpeg.png",
"author": "jxxghp",
"level": 1,
"history": {
"v2.0": "兼容MoviePilot V2 版本"
}
}
}

View File

@@ -28,7 +28,7 @@ class FFmpegThumb(_PluginBase):
# 插件图标
plugin_icon = "ffmpeg.png"
# 插件版本
plugin_version = "1.2"
plugin_version = "2.0"
# 插件作者
plugin_author = "jxxghp"
# 作者主页
@@ -276,6 +276,9 @@ class FFmpegThumb(_PluginBase):
transferinfo: TransferInfo = event.event_data.get("transferinfo")
if not transferinfo:
return
if transferinfo.target_diritem and transferinfo.target_diritem.storage != "local":
logger.warn(f"FFmpeg缩略图不支持非本地存储{transferinfo.target_diritem.storage}")
return
file_list = transferinfo.file_list_new
for file in file_list:
logger.info(f"FFmpeg缩略图处理文件{file}")