mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix 修复插件依赖安装问题
This commit is contained in:
@@ -42,7 +42,7 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/
|
||||
- 目录监控(统一入库消息增强版) v1.0
|
||||
- Sql执行器 v1.3
|
||||
- 命令执行器 v1.2
|
||||
- [CloudDrive2助手v1.7](docs%2FCd2Assistant.md)
|
||||
- [CloudDrive2助手v1.8](docs%2FCd2Assistant.md)
|
||||
- 软连接重定向 v1.1
|
||||
- 云盘同步删除 v1.5.1
|
||||
- 媒体库重复媒体检测 v1.9
|
||||
|
||||
@@ -587,11 +587,12 @@
|
||||
"name": "CloudDrive2助手",
|
||||
"description": "监控上传任务,检测是否有异常,发送通知。",
|
||||
"labels": "云盘",
|
||||
"version": "1.7",
|
||||
"version": "1.8",
|
||||
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/clouddrive.png",
|
||||
"author": "thsrite",
|
||||
"level": 2,
|
||||
"history": {
|
||||
"v1.8": "修复插件依赖安装问题",
|
||||
"v1.7": "增加HomePage自定义API(详见插件说明)",
|
||||
"v1.6": "支持交互命令云下载",
|
||||
"v1.5": "增加云盘同步黑名单(排序挂载本地目录)",
|
||||
|
||||
@@ -2,9 +2,13 @@ import re
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
import pytz
|
||||
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", "-U", "clouddrive"], check=True)
|
||||
from app import schemas
|
||||
from app.core.config import settings
|
||||
from app.core.event import eventmanager, Event
|
||||
@@ -26,7 +30,7 @@ class Cd2Assistant(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/clouddrive.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.7"
|
||||
plugin_version = "1.8"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
|
||||
Reference in New Issue
Block a user