Merge pull request #273 from qqcomeup/main

全是AI干的,实测可用
This commit is contained in:
thsrite
2025-07-20 15:33:08 +08:00
committed by GitHub
3 changed files with 21 additions and 10 deletions

View File

@@ -5,14 +5,9 @@ from typing import Any, List, Dict, Tuple, Optional
import pytz
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.triggers.cron import CronTrigger
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", "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/refs/heads/main/data/clouddrive-0.0.12.7.1.tar.gz"], check=True)
from clouddrive import CloudDriveClient, Client
from clouddrive.proto import CloudDrive_pb2
from app import schemas
from app.core.config import settings
@@ -22,7 +17,6 @@ from app.plugins import _PluginBase
from app.schemas import NotificationType
from app.schemas.types import EventType
class Cd2Assistant(_PluginBase):
# 插件名称
plugin_name = "CloudDrive2助手"

View File

@@ -0,0 +1,17 @@
https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/refs/heads/main/data/clouddrive-0.0.12.7.1.tar.gz
glob_pattern
grpcio
grpcio-tools
grpclib
grpclib[protobuf]
http_response
path_ignore_pattern
protobuf
python-argtools
python-dateutil
python-download>=0.0.3
python-filewrap>=0.1.1
python-httpfile>=0.0.2
python-http_request>=0.0.6
python-urlopen
yarl

View File

@@ -62,7 +62,7 @@ class CloudflareSpeedTest(_PluginBase):
_cf_ipv6 = None
_result_file = None
_release_prefix = 'https://github.com/XIU2/CloudflareSpeedTest/releases/download'
_binary_name = 'CloudflareST'
_binary_name = 'cfst'
def init_plugin(self, config: dict = None):
# 停止现有任务
@@ -832,4 +832,4 @@ class CloudflareSpeedTest(_PluginBase):
self._scheduler.shutdown()
self._scheduler = None
except Exception as e:
logger.error("退出插件失败:%s" % str(e))
logger.error("退出插件失败:%s" % str(e))