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