mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-05-24 07:26:45 +00:00
fix
This commit is contained in:
@@ -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生成方式",
|
||||
|
||||
@@ -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}完成")
|
||||
|
||||
# 上传任务列表
|
||||
|
||||
1
plugins/cloudassistant/requirements.txt
Normal file
1
plugins/cloudassistant/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
clouddrive
|
||||
Reference in New Issue
Block a user