From 1ac1ab7586408d7d7640c7a130e13f84cc1513d4 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 19 Oct 2024 17:27:09 +0800 Subject: [PATCH] =?UTF-8?q?FFmpeg=E7=BC=A9=E7=95=A5=E5=9B=BE=20=E5=85=BC?= =?UTF-8?q?=E5=AE=B9V2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.v2.json | 12 ++++++++++++ plugins.v2/ffmpegthumb/__init__.py | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/package.v2.json b/package.v2.json index 01e3580..6346ec4 100644 --- a/package.v2.json +++ b/package.v2.json @@ -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 版本" + } } } \ No newline at end of file diff --git a/plugins.v2/ffmpegthumb/__init__.py b/plugins.v2/ffmpegthumb/__init__.py index b12454e..b645f31 100644 --- a/plugins.v2/ffmpegthumb/__init__.py +++ b/plugins.v2/ffmpegthumb/__init__.py @@ -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}")