fix 解决依赖安装问题

This commit is contained in:
thsrite
2025-07-09 15:59:30 +08:00
parent 9768ed0b1d
commit 8cf1b0a2db
4 changed files with 11 additions and 6 deletions

View File

@@ -286,11 +286,12 @@
"name": "CloudDrive2助手",
"description": "监控上传任务,检测是否有异常,发送通知。",
"labels": "云盘",
"version": "2.0.3",
"version": "2.0.4",
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/clouddrive.png",
"author": "thsrite",
"level": 2,
"history": {
"v2.0.4": "依赖问题",
"v2.0.3": "优化执行周期输入需要MoviePilot v2.2.1+",
"v2.0.2": "HomePage API支持参数name指定配置(默认取第一个)",
"v2.0.1": "修复HomePage API",

View File

@@ -5,8 +5,14 @@ from typing import Any, List, Dict, Tuple, Optional
import pytz
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.triggers.cron import CronTrigger
from clouddrive import CloudDriveClient, Client
from clouddrive.proto import CloudDrive_pb2
try:
from clouddrive import CloudDriveClient, Client
from clouddrive.proto import CloudDrive_pb2
except ImportError:
from sys import executable
from subprocess import run
run([executable, "-m", "pip", "install", "clouddrive-0.0.12.7.1.tar.gz"], check=True)
from app import schemas
from app.core.config import settings
@@ -25,7 +31,7 @@ class Cd2Assistant(_PluginBase):
# 插件图标
plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/clouddrive.png"
# 插件版本
plugin_version = "2.0.3"
plugin_version = "2.0.4"
# 插件作者
plugin_author = "thsrite"
# 作者主页

Binary file not shown.

View File

@@ -1,2 +0,0 @@
clouddrive
lz4