From c7823b2df72264d747237740cd8e7eac58a65e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E7=8E=B2=E8=BE=89?= Date: Tue, 14 May 2024 00:38:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=96=B0=E7=89=88=E6=9C=ACIY?= =?UTF-8?q?UU=E5=BC=80=E5=8F=91=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/iyuuautoseed/iyuu_helper.py | 3 + plugins/mteamhelper/__init__.py | 118 ---------------------------- 2 files changed, 3 insertions(+), 118 deletions(-) delete mode 100644 plugins/mteamhelper/__init__.py diff --git a/plugins/iyuuautoseed/iyuu_helper.py b/plugins/iyuuautoseed/iyuu_helper.py index 456a117..d1c116a 100644 --- a/plugins/iyuuautoseed/iyuu_helper.py +++ b/plugins/iyuuautoseed/iyuu_helper.py @@ -8,6 +8,9 @@ from app.utils.http import RequestUtils class IyuuHelper(object): + """ + 适配新版本IYUU开发版 + """ _version = "8.2.0" _api_base = "https://dev.iyuu.cn" _sites = {} diff --git a/plugins/mteamhelper/__init__.py b/plugins/mteamhelper/__init__.py deleted file mode 100644 index bc9be9d..0000000 --- a/plugins/mteamhelper/__init__.py +++ /dev/null @@ -1,118 +0,0 @@ -import os -import re -from datetime import datetime, timedelta -from threading import Event -from typing import Any, List, Dict, Tuple, Optional - -from app.log import logger -from app.plugins import _PluginBase - -class MTeamHelper(_PluginBase): - # 插件名称 - plugin_name = "馒头辅助工具" - # 插件描述 - plugin_desc = "用于解决MP不支持馒头新架构更新导致的一些异常。" - # 插件图标 - plugin_icon = "https://raw.githubusercontent.com/goo4it/MoviePilot-Plugins/main/icons/m-team.png" - # 插件版本 - plugin_version = "1.0" - # 插件作者 - plugin_author = "goo4it" - # 作者主页 - author_url = "https://github.com/goo4it/MoviePilot-Plugins" - # 插件配置项ID前缀 - plugin_config_prefix = "mteamhelper_" - # 加载顺序 - plugin_order = 17 - # 可使用的用户级别 - auth_level = 1 - - # 私有属性 - _scheduler = None - # 开关 - _enabled = False - _apikey = "" - - def init_plugin(self, config: dict = None): - if not config: - return - logger.info(f"正在应用馒头配置:{config}") - self._enabled = config.get("enabled") - self._apikey = config.get("apiKey") - if not self._enabled: - return - - def get_state(self) -> bool: - return self._enabled - - @staticmethod - def get_command() -> List[Dict[str, Any]]: - pass - - def get_api(self) -> List[Dict[str, Any]]: - pass - - def get_form(self) -> Tuple[List[dict], Dict[str, Any]]: - """ - 拼装插件配置页面,需要返回两块数据:1、页面配置;2、数据结构 - """ - return [ - { - 'component': 'VForm', - 'content': [ - { - 'component': 'VRow', - 'content': [ - { - 'component': 'VCol', - 'props': { - 'cols': 12, - 'md': 6 - }, - 'content': [ - { - 'component': 'VSwitch', - 'props': { - 'model': 'enabled', - 'label': '启用插件', - } - } - ] - } - ] - }, - { - 'component': 'VRow', - 'content': [ - { - "component": "VCol", - "props": { - "cols": 12, - }, - "content": [ - { - "component": "VTextField", - "props": { - "model": "apiKey", - "label": "APIKEY" - } - } - ] - } - ] - }, - ] - } - ], { - "enabled": False, - "apiKey": "" - } - - def get_page(self) -> List[dict]: - pass - - def stop_service(self): - """ - 退出插件 - """ - pass