mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-23 15:09:42 +00:00
FFmpeg缩略图 兼容V2
This commit is contained in:
@@ -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 版本"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user