mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
@@ -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助手"
|
||||
|
||||
17
plugins.v2/cd2assistant/requirements.txt
Normal file
17
plugins.v2/cd2assistant/requirements.txt
Normal 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
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user