This commit is contained in:
thsrite
2024-06-23 17:57:18 +08:00
parent b82f91c6d4
commit 16bf83af7e
3 changed files with 5 additions and 4 deletions

View File

@@ -523,7 +523,7 @@
"version": "1.2",
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/cloudassistant.png",
"author": "thsrite",
"level": 2,
"level": 3,
"history": {
"v1.2": "移除cd2上传",
"v1.1": "支持cd2上传、支持定时清理无效软连接、支持strm生成方式",

View File

@@ -13,7 +13,7 @@ from typing import List, Tuple, Dict, Any, Optional
import pytz
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.triggers.cron import CronTrigger
# from clouddrive.proto import CloudDrive_pb2
from clouddrive.proto import CloudDrive_pb2
from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
from watchdog.observers.polling import PollingObserver
@@ -71,7 +71,7 @@ class CloudAssistant(_PluginBase):
# 加载顺序
plugin_order = 4
# 可使用的用户级别
auth_level = 2
auth_level = 3
# 私有属性
_scheduler = None
@@ -420,7 +420,7 @@ class CloudAssistant(_PluginBase):
# 上传文件到cd2
logger.info(f"开始上传文件 {file_path}{cd2_file}")
# self._client.MoveFile(CloudDrive_pb2.MoveFileRequest(str(file_path), Path(cd2_file).parent), async_=True)
self._client.MoveFile(CloudDrive_pb2.MoveFileRequest(str(file_path), Path(cd2_file).parent), async_=True)
logger.info(f"上传文件 {file_path}{cd2_file}完成")
# 上传任务列表

View File

@@ -0,0 +1 @@
clouddrive